资源预览内容
第1页 / 共4页
第2页 / 共4页
第3页 / 共4页
第4页 / 共4页
亲,该文档总共4页全部预览完了,如果喜欢就下载吧!
资源描述
#ifndef XConfigH#define XConfigH/*2006-2-7 配置使用的宏zdhsoft*/*关于VC的宏开关*/#ifdef _MSC_VER#define CONFIG_BCB 0#define CONFIG_BCB5 0#define CONFIG_BCB6 0#define CONFIG_BCB2006 0#define CONFIG_GCC 0#define CONFIG_GCC2X 0#define CONFIG_GCC3X 0#define CONFIG_GCC4X 0#define CONFIG_VC 1#if _MSC_VER = 1200 #define CONFIG_VC5 0 #define CONFIG_VC6 1 #define CONFIG_VC2001 0 #define CONFIG_VC2003 0 #define CONFIG_VC2005 0#elif _MSC_VER = 1310 #define CONFIG_VC5 0 #define CONFIG_VC6 0 #define CONFIG_VC2001 0 #define CONFIG_VC2003 1 #define CONFIG_VC2005 0#elif _MSC_VER = 1400 #define CONFIG_VC5 0 #define CONFIG_VC6 0 #define CONFIG_VC2001 0 #define CONFIG_VC2003 0 #define CONFIG_VC2005 1#else #define CONFIG_VC5 0 #define CONFIG_VC6 0 #define CONFIG_VC2001 0 #define CONFIG_VC2003 0 #define CONFIG_VC2005 0#endif#endif#ifdef _BORLANDC_#define CONFIG_BCB 1#define CONFIG_VC 0#define CONFIG_VC5 0#define CONFIG_VC6 0#define CONFIG_VC2001 0#define CONFIG_VC2003 0#define CONFIG_VC2005 0#define CONFIG_GCC 0#define CONFIG_GCC2X 0#define CONFIG_GCC3X 0#define CONFIG_GCC4X 0#if _BORLANDC_ = 0x0560 & _BORLANDC_ = 0x0550 & _BORLANDC_ = 0x0570 #define CONFIG_BCB5 0 #define CONFIG_BCB6 0 #define CONFIG_BCB2006 1#else #define CONFIG_BCB5 0 #define CONFIG_BCB6 0 #define CONFIG_BCB2006 0#endif#endif#ifdef _GNUC_#define CONFIG_BCB 0#define CONFIG_BCB5 0#define CONFIG_BCB6 0#define CONFIG_BCB2006 0#define CONFIG_VC 0#define CONFIG_VC5 0#define CONFIG_VC6 0#define CONFIG_VC2001 0#define CONFIG_VC2003 0#define CONFIG_VC2005 0#define CONFIG_GCC 1#if _GNUC_ = 2 #define CONFIG_GCC2X 1 #define CONFIG_GCC3X 0 #define CONFIG_GCC4X 0#elif _GNUC_ = 3 #define CONFIG_GCC2X 0 #define CONFIG_GCC3X 1 #define CONFIG_GCC4X 0#elif _GNUC_ = 4 #define CONFIG_GCC2X 0 #define CONFIG_GCC3X 0 #define CONFIG_GCC4X 1#else #define CONFIG_GCC2X 0 #define CONFIG_GCC3X 0 #define CONFIG_GCC4X 0#endif#endif/*调试开关,有些地方会用到调试信息。*/#define CONFIG_DEBUG 0/多线程开关#define CONFIG_MULT_THREAD 1/*关于各种指定的开关*/*关于CPU类型的开关*/#define TEST_CONFIG 0#if TEST_CONFIG#include void printf_cpp_define()printf(CONFIG_VC = %dn,CONFIG_VC);printf(CONFIG_VC5 = %dn,CONFIG_VC5);printf(CONFIG_VC6 = %dn,CONFIG_VC6);printf(CONFIG_VC2001 = %dn,CONFIG_VC2001);printf(CONFIG_VC2003 = %dn,CONFIG_VC2003);printf(CONFIG_VC2005 = %dn,CONFIG_VC2005);printf(CONFIG_BCB = %dn,CONFIG_BCB);printf(CONFIG_BCB5 = %dn,CONFIG_BCB5);printf(CONFIG_BCB6 = %dn,CONFIG_BCB6);printf(CONFIG_BCB2006 = %dn,CONFIG_BCB2006);printf(CONFIG_GCC = %dn,CONFIG_GCC);printf(CONFIG_GCC2X = %dn,CONFIG_GCC2X);printf(CONFIG_GCC3X = %dn,CONFIG_GCC3X);printf(CONFIG_GCC4X = %dn,CONFIG_GCC4X);#endif#endif
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号