The following macros are predefined in OS X:

__APPLE__
    This macro is defined in any Apple computer.
__APPLE_CC__
    This macro is set to an integer that represents the version number of
    the compiler. This lets you distinguish, for example, between compilers
    based on the same version of GCC, but with different bug fixes or features.
    Larger values denote later compilers.
__OSX__
     Presumabley the OS is a particular variant of OS X

Predefined Macros

The following macros are predefined in OS X:

__OBJC__

This macro is defined when your code is being compiled by the Objective-C compiler. By default, this occurs when compiling a .m file or any header included by a .m file. You can force the Objective-C compiler to be used for a .c or .h file by passing the -ObjC or -ObjC++ flags.

__cplusplus

This macro is defined when your code is being compiled by the C++ compiler (either explicitly or by passing the -ObjC++ flag).

__ASSEMBLER__

This macro is defined when compiling .s files.

__NATURAL_ALIGNMENT__

This macro is defined on systems that use natural alignment. When using natural alignment, an int is aligned on sizeof(int) boundary, a short int is aligned onsizeof(short) boundary, and so on. It is defined by default when you're compiling code for PowerPC architecutres. It is not defined when you use the -malign-mac68kcompiler switch, nor is it defined on Intel architectures.

__MACH__

This macro is defined if Mach system calls are supported.

__APPLE__

This macro is defined in any Apple computer.

__APPLE_CC__

This macro is set to an integer that represents the version number of the compiler. This lets you distinguish, for example, between compilers based on the same version of GCC, but with different bug fixes or features. Larger values denote later compilers.

__BIG_ENDIAN__ and  __LITTLE_ENDIAN__

These macros tell whether the current architecture uses little endian or big endian byte ordering. For more information, see “Compiling for Multiple CPU Architectures.”

Note: To define a section of code to be compiled on OS X system, you should define a section using __APPLE__ with __MACH__ macros. The macro __UNIX__ is not defined in OS X

1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 、下4载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 、下4载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合;、 4下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值