版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Crazy_SunShine/article/details/84975253
ERROR:
'__weak' only applies to Objective-C object or block pointer types; type here is 'int'
A parameter list without types is only allowed in a function definition
Expected ';' at end of declaration
Insert ';'
Type specifier missing, defaults to 'int'
解决办法如下:
Xcode-> Build Settings-> C Language Dialect
修改配置,C99
改为GNU99
,C99
不包含typeof