指引网

当前位置: 主页 > 编程开发 > C >

xconfig.h 4.0版

来源:网络 作者:佚名 点击: 时间:2017-07-19 23:01
[摘要] 

///编译器以及操作系统配置头文件
/**
* 通用库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
&

------分隔线----------------------------