c++各个平台的宏定义
2014-10-23 10:13
148 查看
#ifdef _WIN32 //define something for Windows (32-bit and 64-bit, this part is common) #ifdef _WIN64 //define something for Windows (64-bit only) #endif #elif __APPLE__ #if TARGET_IPHONE_SIMULATOR // iOS Simulator #elif TARGET_OS_IPHONE // iOS device #elif TARGET_OS_MAC // Other kinds of Mac OS #else // Unsupported platform #endif #elif __linux // linux #elif __unix // all unices not caught above // Unix #elif __posix // POSIX #endif
相关文章推荐
- 100个windows平台C++开发错误之宏定义
- cocos2d-x C++ 判断当前平台宏定义大全
- C++各平台和编译器的预编译宏定义
- Object c/swift,java,c/c++在32位和64位各个平台上基本数据类型 所占有的字节数
- 100个windows平台C++开发错误之十六宏定义
- WINX调查:您使用什么C++开发平台?
- sybase12.0for各个平台安装文档ibm,hp,sun,dec
- WINX调查:您使用什么C++开发平台?
- C++各个阶段应该看的书
- windows平台上向64位移植c/c++的变量类型大小变化
- 在POWER平台的Linux如何使用XL C/C++
- [c/c++]宏定义,#,##
- 在Visual C++.NET平台上调用MYSQL的C API的方法
- VC 2005 的IDE宏 - 创建 C++ 头文件的防重包含宏定义
- C++的各个阶段以及学习重点和需要看的书
- 在Redhat9 Linux下安装汉化eclipse3.1.2的c/c++开发平台
- C&C++中的宏定义——#define
- 用Eclipse构建c++平台
- 用 Eclipse 平台进行 C/C++ 开发
- 跨平台软件开发(C++)系列文章目录