iOS编译器定义使用什么
|
我有以下要在Iphone OS上运行的代码,应为IOS使用哪个编译器标志,以及应在下面的代码中插入什么位置?谢谢
#if defined(__BORLANDC__) || defined (__WATCOMC__) || defined(_MSC_VER) || defined(__ZTC__) || defined(__HIGHC__) || defined(_TURBOC_)
typedef long int Word32 ;
typedef short int Word16 ;
typedef short int Flag ;
#elif defined( __sun)
typedef short Word16;
typedef long Word32;
typedef int Flag;
#elif defined(__unix__) || defined(__unix)
typedef short Word16;
typedef int Word32;
typedef int Flag;
#elif defined(VMS) || defined(__VMS)
typedef short Word16;
typedef long Word32;
typedef int Flag;
#else
#error COMPILER NOT TESTED typedef.h needs to be updated, see readme
#endif
没有找到相关结果
已邀请:
1 个回复
谷靛
对于iOS,您可以使用:
对于MAC OS X:
希望这可以帮助。