Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PingFoundation.h文件中这几句报错,不知道为啥 #15

Open
vampire-locker opened this issue Dec 13, 2017 · 4 comments
Open

PingFoundation.h文件中这几句报错,不知道为啥 #15

vampire-locker opened this issue Dec 13, 2017 · 4 comments

Comments

@vampire-locker
Copy link

check_compile_time(sizeof(ICMPHeader) == 8);
check_compile_time(offsetof(ICMPHeader, type) == 0);
check_compile_time(offsetof(ICMPHeader, code) == 1);
check_compile_time(offsetof(ICMPHeader, checksum) == 2);
check_compile_time(offsetof(ICMPHeader, identifier) == 4);
check_compile_time(offsetof(ICMPHeader, sequenceNumber) == 6);

@wufengshou
Copy link

我也是

@Tdreamy
Copy link

Tdreamy commented Jan 29, 2018

我的也是,这个问题有谁解决了么,项目跑步起来啊

@a758209678
Copy link

把check_compile_time改成__Check_Compile_Time

@greezi
Copy link

greezi commented Sep 11, 2018

__Check_Compile_Time(sizeof(ICMPHeader) == 8);
__Check_Compile_Time(offsetof(ICMPHeader, type) == 0);
__Check_Compile_Time(offsetof(ICMPHeader, code) == 1);
__Check_Compile_Time(offsetof(ICMPHeader, checksum) == 2);
__Check_Compile_Time(offsetof(ICMPHeader, identifier) == 4);
__Check_Compile_Time(offsetof(ICMPHeader, sequenceNumber) == 6);

@zzdota zzdota mentioned this issue Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants