我正在尝试在Xcode中设置c11线程示例...但似乎没有threads.h头文件,虽然它没有抱怨此处描述的宏:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf
__STDC_NO_THREADS__这个整数常量为1,旨在表示该实现不支持<threads.h>头文件。
threads.h
文件。 - Robert Harveythreads.h
是否在里面,如果在的话,再看看编译器是否可以访问它。 - Robert Harveyfind /Applications/Xcode.app/Contents -name threads.h
- Grady Player#if !defined(__STDC_NO_THREADS) || __STDC_NO_THREADS__
。 - Kevin__ALL_MACROS__
宏...或者已经有了...思路被打乱了。 - Grady Player