00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _SDL_config_win32_h
00024 #define _SDL_config_win32_h
00025
00026 #include "SDL_platform.h"
00027
00028
00029
00030 #if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
00031 #if defined(__GNUC__) || defined(__DMC__)
00032 #define HAVE_STDINT_H 1
00033 #elif defined(_MSC_VER)
00034 typedef signed __int8 int8_t;
00035 typedef unsigned __int8 uint8_t;
00036 typedef signed __int16 int16_t;
00037 typedef unsigned __int16 uint16_t;
00038 typedef signed __int32 int32_t;
00039 typedef unsigned __int32 uint32_t;
00040 typedef signed __int64 int64_t;
00041 typedef unsigned __int64 uint64_t;
00042 #ifndef _UINTPTR_T_DEFINED
00043 #ifdef _WIN64
00044 typedef unsigned __int64 uintptr_t;
00045 #else
00046 typedef unsigned int uintptr_t;
00047 #endif
00048 #define _UINTPTR_T_DEFINED
00049 #endif
00050
00051 #if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
00052 #define DWORD_PTR DWORD
00053 #endif
00054 #if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
00055 #define LONG_PTR LONG
00056 #endif
00057 #else
00058 typedef signed char int8_t;
00059 typedef unsigned char uint8_t;
00060 typedef signed short int16_t;
00061 typedef unsigned short uint16_t;
00062 typedef signed int int32_t;
00063 typedef unsigned int uint32_t;
00064 typedef signed long long int64_t;
00065 typedef unsigned long long uint64_t;
00066 #ifndef _SIZE_T_DEFINED_
00067 #define _SIZE_T_DEFINED_
00068 typedef unsigned int size_t;
00069 #endif
00070 typedef unsigned int uintptr_t;
00071 #endif
00072 #endif
00073
00074 #ifdef _WIN64
00075 # define SIZEOF_VOIDP 8
00076 #else
00077 # define SIZEOF_VOIDP 4
00078 #endif
00079 #define SDL_HAS_64BIT_TYPE 1
00080
00081
00082
00083 #ifdef HAVE_LIBC
00084
00085 #define HAVE_STDIO_H 1
00086 #define STDC_HEADERS 1
00087 #define HAVE_STRING_H 1
00088 #define HAVE_CTYPE_H 1
00089 #define HAVE_MATH_H 1
00090 #ifndef _WIN32_WCE
00091 #define HAVE_SIGNAL_H 1
00092 #endif
00093
00094
00095 #define HAVE_MALLOC 1
00096 #define HAVE_CALLOC 1
00097 #define HAVE_REALLOC 1
00098 #define HAVE_FREE 1
00099 #define HAVE_ALLOCA 1
00100 #define HAVE_QSORT 1
00101 #define HAVE_ABS 1
00102 #define HAVE_MEMSET 1
00103 #define HAVE_MEMCPY 1
00104 #define HAVE_MEMMOVE 1
00105 #define HAVE_MEMCMP 1
00106 #define HAVE_STRLEN 1
00107 #define HAVE__STRREV 1
00108 #define HAVE__STRUPR 1
00109 #define HAVE__STRLWR 1
00110 #define HAVE_STRCHR 1
00111 #define HAVE_STRRCHR 1
00112 #define HAVE_STRSTR 1
00113 #define HAVE_ITOA 1
00114 #define HAVE__LTOA 1
00115 #define HAVE__ULTOA 1
00116 #define HAVE_STRTOL 1
00117 #define HAVE_STRTOUL 1
00118 #define HAVE_STRTOLL 1
00119 #define HAVE_STRTOD 1
00120 #define HAVE_ATOI 1
00121 #define HAVE_ATOF 1
00122 #define HAVE_STRCMP 1
00123 #define HAVE_STRNCMP 1
00124 #define HAVE__STRICMP 1
00125 #define HAVE__STRNICMP 1
00126 #define HAVE_SSCANF 1
00127 #define HAVE_M_PI 1
00128 #define HAVE_CEIL 1
00129 #define HAVE_COPYSIGN 1
00130 #define HAVE_COS 1
00131 #define HAVE_COSF 1
00132 #define HAVE_FABS 1
00133 #define HAVE_FLOOR 1
00134 #define HAVE_LOG 1
00135 #define HAVE_POW 1
00136 #define HAVE_SCALBN 1
00137 #define HAVE_SIN 1
00138 #define HAVE_SINF 1
00139 #define HAVE_SQRT 1
00140 #else
00141 #define HAVE_STDARG_H 1
00142 #define HAVE_STDDEF_H 1
00143 #endif
00144
00145
00146 #ifndef _WIN32_WCE
00147 #define SDL_AUDIO_DRIVER_DSOUND 1
00148 #endif
00149 #define SDL_AUDIO_DRIVER_WINWAVEOUT 1
00150 #define SDL_AUDIO_DRIVER_DISK 1
00151 #define SDL_AUDIO_DRIVER_DUMMY 1
00152
00153
00154 #ifdef _WIN32_WCE
00155 #define SDL_JOYSTICK_DISABLED 1
00156 #define SDL_HAPTIC_DUMMY 1
00157 #else
00158 #define SDL_JOYSTICK_DINPUT 1
00159 #define SDL_HAPTIC_DINPUT 1
00160 #endif
00161
00162
00163 #define SDL_LOADSO_WIN32 1
00164
00165
00166 #define SDL_THREAD_WIN32 1
00167
00168
00169 #ifdef _WIN32_WCE
00170 #define SDL_TIMER_WINCE 1
00171 #else
00172 #define SDL_TIMER_WIN32 1
00173 #endif
00174
00175
00176 #define SDL_VIDEO_DRIVER_DUMMY 1
00177 #define SDL_VIDEO_DRIVER_WIN32 1
00178
00179 #define SDL_VIDEO_RENDER_D3D 1
00180 #define SDL_VIDEO_RENDER_GDI 1
00181
00182
00183 #ifndef _WIN32_WCE
00184 #define SDL_VIDEO_OPENGL 1
00185 #define SDL_VIDEO_OPENGL_WGL 1
00186 #define SDL_VIDEO_RENDER_OGL 1
00187 #endif
00188
00189
00190 #define SDL_POWER_WINDOWS 1
00191
00192
00193 #ifndef _WIN64
00194 #define SDL_ASSEMBLY_ROUTINES 1
00195 #endif
00196
00197 #endif