-
Notifications
You must be signed in to change notification settings - Fork 456
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
iOS 9 运行报错 #96
Comments
__Check_Compile_Time(sizeof(ICMPHeader) == 8); |
请这样做 |
是在真机运行报错吗? |
真机和模拟器运行都会报错,报错1 Expected parameter declarator 2 Expected ')' 红点提示是这个函数sizeof(ICMPHeader) == 8 |
最新版本的realreachability已经改成__Check_Compile_Time的方式了啊,请更新版本重试呢? |
真机和模拟器都已经没有问题了 |
ok |
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);
The text was updated successfully, but these errors were encountered: