⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.h

📁 配置文件读取类
💻 H
字号:
#ifndef __CONFIG_H__#define __CONFIG_H__//在AIX和HP平台下,编译器不能自动识别,需要在这里使用宏定义进行控制// ssj ADD 2005-9-20#if defined(AIX) 	#define HAVE_STDINT_H       1		#if defined(AIX_BITS64) || defined(BIT64)        #define SIZEOF_CHAR              1        #define SIZEOF_SHORT             4        #define SIZEOF_INT               8        #define SIZEOF_LONG              8        #define SIZEOF_LONG_LONG         8		#define SIZEOF_VOID_P            8		#define SIZEOF_PTRDIFF_T         8		#define SIZEOF_SIZE_T            8	#elif defined(AIX_BITS32) || defined(BIT32)        #define SIZEOF_CHAR              1        #define SIZEOF_SHORT             2        #define SIZEOF_INT               4        #define SIZEOF_LONG              4        #define SIZEOF_LONG_LONG         8		#define SIZEOF_VOID_P            4		#define SIZEOF_PTRDIFF_T         4		#define SIZEOF_SIZE_T            4	#endif#elif defined(HP) || defined(HP_UNIX) || defined(_HP_UX)	#if defined(HP_BITS64) || defined(BIT64)        #define SIZEOF_CHAR              1        #define SIZEOF_SHORT             4        #define SIZEOF_INT               8        #define SIZEOF_LONG              8        #define SIZEOF_LONG_LONG         8		#define SIZEOF_VOID_P            8		#define SIZEOF_PTRDIFF_T         8		#define SIZEOF_SIZE_T            8	#elif defined(HP_BITS32) || defined(BIT32)        #define SIZEOF_CHAR              1        #define SIZEOF_SHORT             2        #define SIZEOF_INT               4        #define SIZEOF_LONG              4        #define SIZEOF_LONG_LONG         8		#define SIZEOF_VOID_P            4		#define SIZEOF_PTRDIFF_T         4		#define SIZEOF_SIZE_T            4	#endif#elif defined(LINUX) || defined(__LINUX)	#define SIZEOF_VOID_P            4	#define SIZEOF_PTRDIFF_T         4	#define SIZEOF_SIZE_T            4	#define HAVE_INTTYPES_H 1#elif defined(WIN32) 	#define SIZEOF_VOID_P            4	#define SIZEOF_PTRDIFF_T         4	#define SIZEOF_SIZE_T            4#else	#error Cannot find a define type for your platform#endif#endif // __CONFIG_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -