Closed wujianbotju closed 6 years ago
类QNNPing.m 第93行到103行,check_compile_time调用, error: expected parameter declarator check_compile_time(sizeof(IPHeader) == 20); .... .... 可能解决方法:check_compile_time中的参数全部添加括号,如 check_compile_time(sizeof(IPHeader) == 20); 改为 check_compile_time((sizeof(IPHeader) == 20));
修改check_compile_time为__Check_Compile_Time可行。
是版本不更新了么?
https://github.com/qiniu/iOS-netdiag/releases 这个已经更新了
类QNNPing.m 第93行到103行,check_compile_time调用, error: expected parameter declarator check_compile_time(sizeof(IPHeader) == 20); .... .... 可能解决方法:check_compile_time中的参数全部添加括号,如 check_compile_time(sizeof(IPHeader) == 20); 改为 check_compile_time((sizeof(IPHeader) == 20));