一聚教程网:一个值得你收藏的教程网站

热门教程

xconfig.h 4.0版

时间:2022-07-02 10:59:14 编辑:袖梨 来源:一聚教程网

///编译器以及操作系统配置头文件
/**
* 通用库4.0版
* 这个头文件主要是统一定义编译相关的宏定义,以便于相关编译器的使用。
* @author zdhsoft(祝冬华)
* @version 4.0
* @date 2008-03-01
* @file xconfig.h
* @test 已测试
*/

#ifndef _X_CONFIG_H_
#define _X_CONFIG_H_

#define CONFIG_CPU64   0 //64位程序
#define CONFIG_CPU32   1   //32位程序

#define CONFIG_LANGUAGE_CHN 1 //中文语言
#define CONFIG_LANGUAGE_ENG 0   //英文语言
 

#ifdef _MSC_VER
 #define CONFIG_BCB  0

 #define CONFIG_BCB5  0
 #define CONFIG_BCB6  0
 #define CONFIG_BCB2006 0
    #define CONFIG_BCB2007  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
  #define CONFIG_VC2008 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
  #define CONFIG_VC2008 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
  #define CONFIG_VC2008 0
 #elif _MSC_VER == 1500
  #define CONFIG_VC5  0
  #define CONFIG_VC6  0
  #define CONFIG_VC2001 0
  #define CONFIG_VC2003 0
  #define CONFIG_VC2005 0
  #define CONFIG_VC2008 1
 #else
  #define CONFIG_VC5  0
&

热门栏目