compiler_msvc.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045 #ifndef LASS_GUARDIAN_OF_INCLUSION_CONFIG_COMPILER_MSVC_H
00046 #define LASS_GUARDIAN_OF_INCLUSION_CONFIG_COMPILER_MSVC_H
00047
00048
00049
00050 #define LASS_COMPILER_VERSION _MSC_VER
00051
00052 #if LASS_COMPILER_VERSION == 1200
00053 # define LASS_COMPILER "Microsoft Visual C++ version 6.0"
00054 # define LASS_LIB_COMPILER "vc6"
00055
00056 #elif LASS_COMPILER_VERSION == 1300
00057 # define LASS_COMPILER "Microsoft Visual C++ 2002"
00058 # define LASS_LIB_COMPILER "vc7"
00059
00060 #elif LASS_COMPILER_VERSION == 1310
00061 # define LASS_COMPILER "Microsoft Visual C++ 2003"
00062 # define LASS_LIB_COMPILER "vc71"
00063
00064 #elif LASS_COMPILER_VERSION == 1400
00065 # define LASS_COMPILER "Microsoft Visual C++ 2005"
00066 # define LASS_LIB_COMPILER "vc8"
00067
00068 #elif LASS_COMPILER_VERSION == 1500
00069 # define LASS_COMPILER "Microsoft Visual C++ 2008"
00070 # define LASS_LIB_COMPILER "vc9"
00071
00072 #else
00073 # define LASS_COMPILER "Microsoft Visual C++"
00074 # define LASS_LIB_COMPILER "vc"
00075 #endif
00076
00077
00078
00079
00080
00081 #include "pragmas_msvc.h"
00082 #pragma warning(4: 4061) // enumerate 'identifier' in switch of enum 'enumeration' is not
00083
00084 #pragma warning(4: 4251) // class needs to have dll-interface to be used by clients of class 'type2'
00085 #pragma warning(4: 4505) // unreferenced local function removed
00086 #pragma warning(4: 4710) // inline function was not inlined
00087 #pragma warning(error: 4035) // no return value
00088
00089
00090
00091 #if LASS_COMPILER_VERSION <= 1300 // 1300 == 7.0
00092 # define LASS_NO_TEMPLATE_PARTIAL_SPECIALIZATION
00093 #endif
00094
00095 #if !defined(_CHAR_UNSIGNED)
00096 # define LASS_CHAR_IS_SIGNED
00097 #endif
00098
00099
00100 #if !defined(_WIN64)
00101 # define LASS_HAVE_INLINE_ASSEMBLY_MSVC
00102 #endif
00103
00104
00105 #define LASS_NUM_BASIC_TYPES_HAVE_MSVC
00106
00107 #if defined(_WIN64)
00108 # define LASS_SIZE_T_IS_NOT_ULONG
00109 #endif
00110
00111
00112 #define LASS_NUM_NUM_TRAITS_HAVE_MSVC_FLOAT_H
00113
00114
00115
00116 #define LASS_DLL_IMPORT __declspec( dllimport )
00117 #define LASS_DLL_EXPORT __declspec( dllexport )
00118 #define LASS_CALL __cdecl
00119 #define LASS_NO_INLINE __declspec( noinline )
00120 #define LASS_PER_THREAD __declspec( thread )
00121
00122
00123 #endif