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 #ifndef __CS_WIN32_CSCONFIG_H__
00026 #define __CS_WIN32_CSCONFIG_H__
00027
00028 #define CS_PACKAGE_NAME "crystalspace"
00029
00030 #define CS_PLATFORM_WIN32
00031 #if !defined(CS_PLATFORM_NAME)
00032 # define CS_PLATFORM_NAME "Win32"
00033 #endif
00034
00035 #define CS_PROCESSOR_X86
00036 #if !defined(CS_PROCESSOR_NAME)
00037 # define CS_PROCESSOR_NAME "X86"
00038 #endif
00039
00040 #if defined(__BORLANDC__)
00041 # define CS_COMPILER_BCC
00042 # if !defined(CS_COMPILER_NAME)
00043 # define CS_COMPILER_NAME "Borland"
00044 # endif
00045 # define CS_USE_CUSTOM_ISDIR
00046 #elif defined(__MINGW32__) || defined(__CYGWIN32__)
00047 # define CS_COMPILER_GCC
00048 # if !defined(CS_COMPILER_NAME)
00049 # define CS_COMPILER_NAME "GCC"
00050 # endif
00051 #else
00052 # define CS_COMPILER_MSVC
00053 # if !defined(CS_COMPILER_NAME)
00054 # define CS_COMPILER_NAME "VisualC"
00055 # endif
00056 #endif
00057
00058 #if !defined (CS_COMPILER_GCC)
00059 # define CS_HAVE_MMX
00060 #endif
00061
00062 #undef CS_HAVE_SOCKLEN_T
00063 #define CS_HAVE_MATH_H_FLOAT_FUNCS
00064 #define CS_HAVE_WCHAR_H
00065 #define CS_HAVE_WCHAR_T
00066 #define CS_HAVE_WCSLEN
00067 #define CS_WCHAR_T_SIZE 2
00068
00069 #if defined(CS_COMPILER_BCC)
00070 #define CS_HAVE_STDINT_H
00071 #define CS_HAVE_INTPTR_T
00072 #endif
00073
00074 #define CS_EMBED_PLUGIN_META
00075
00076 #ifdef _WIN64
00077 # define CS_PROCESSOR_SIZE 64
00078 #else
00079 # define CS_PROCESSOR_SIZE 32
00080 #endif
00081
00082 #define CS_LONG_SIZE 4
00083
00084
00085 #if defined(CS_COMPILER_MSVC)
00086 #define PRId64 "I64d"
00087 #define PRIx64 "I64x"
00088 #define PRIu64 "I64u"
00089 #define PRIX64 "I64X"
00090 #endif
00091
00092
00093
00094 #if defined(CS_COMPILER_MSVC) && (_MSC_VER >= 1400)
00095 # ifndef _CRT_SECURE_NO_DEPRECATE
00096 # define _CRT_SECURE_NO_DEPRECATE
00097
00098
00099
00100
00101 # endif
00102 # ifndef _CRT_NONSTDC_NO_DEPRECATE
00103 # define _CRT_NONSTDC_NO_DEPRECATE
00104 # endif
00105 #endif
00106
00107 #if defined(CS_COMPILER_MSVC) && (CS_PROCESSOR_SIZE >= 64)
00108
00109
00110
00111 #ifdef CS_SUPPORTS_MMX
00112 #undef CS_SUPPORTS_MMX
00113 #endif
00114 #endif
00115
00116
00117 #if defined(CS_COMPILER_MSVC) && defined(_MSC_VER) && (_MSC_VER >= 1300)
00118 #define CS_HAVE__ALIGNED_MALLOC
00119 #endif
00120
00121
00122 #if defined(CS_COMPILER_MSVC) && defined(_MSC_VER) && (_MSC_VER >= 1600)
00123 #define CS_HAS_NULLPTR
00124 #endif
00125
00126 #endif // __CS_WIN32_CSCONFIG_H__