编译器条件编译宏
来源:互联网 发布:神龙契约披风数据 编辑:程序博客网 时间:2024/06/06 08:55
There's no inter-compiler standard, but each compiler tends to be quite consistent. You can build a header for yourself that's something like this:
#if MSVC#ifdef _M_X86#define ARCH_X86#endif#endif#if GCC#ifdef __i386__#define ARCH_X86#endif#endif
There's not much point to a comprehensive list, because there are thousands of compilers but only 3-4 in widespread use (Microsoft C++, GCC, Intel CC, maybe TenDRA?). Just decide which compilers your application will support, list their #defines, and update your header as needed.
0 0
- 编译器条件编译宏
- Flex编译器支持条件编译
- 编译器预处理#ifndef 条件编译
- 【C 语言】编译过程 分析 ( 预处理 | 编译 | 汇编 | 链接 | 宏定义 | 条件编译 | 编译器指示字 )
- 条件编译/条件宏定义
- 不同OS和不同编译器的条件编译小结
- 条件编译宏总结
- 宏条件编译
- 宏与条件编译
- 条件编译宏的使用
- 条件编译用到的宏
- 宏定义与条件编译
- C++宏及条件编译
- 宏、条件编译、编译多文件程序
- 条件编译&条件属性
- 条件编译
- 条件编译
- 条件编译
- 第二章 先从看得到的入手 探究活动——总结
- #include<stm32f10x_lib.h>和#include<stm32f10x.h>有什么不同
- 在python中处理HDF5文件中的link
- op自举 正反馈
- UIImageView和UIImage,CGContextRef
- 编译器条件编译宏
- 自定义Toast
- 无序数组的二分查找
- 安卓 利用Fragment添加自定义标题栏
- Nginx常用Rewrite伪静态规则:
- maven3.0使用
- mongo gui client
- SQL 分组函数 group by
- 123