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(__GNUC__) || defined(__DMC__)
00031 #define HAVE_STDINT_H 1
00032 #elif defined(_MSC_VER)
00033 typedef signed __int8 int8_t;
00034 typedef unsigned __int8 uint8_t;
00035 typedef signed __int16 int16_t;
00036 typedef unsigned __int16 uint16_t;
00037 typedef signed __int32 int32_t;
00038 typedef unsigned __int32 uint32_t;
00039 typedef signed __int64 int64_t;
00040 typedef unsigned __int64 uint64_t;
00041 #ifndef _UINTPTR_T_DEFINED
00042 #ifdef _WIN64
00043 typedef unsigned __int64 uintptr_t;
00044 #else
00045 typedef unsigned int uintptr_t;
00046 #endif
00047 #define _UINTPTR_T_DEFINED
00048 #endif
00049
00050 #if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
00051 #define DWORD_PTR DWORD
00052 #endif
00053 #if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
00054 #define LONG_PTR LONG
00055 #endif
00056 #else
00057 typedef signed char int8_t;
00058 typedef unsigned char uint8_t;
00059 typedef signed short int16_t;
00060 typedef unsigned short uint16_t;
00061 typedef signed int int32_t;
00062 typedef unsigned int uint32_t;
00063 typedef signed long long int64_t;
00064 typedef unsigned long long uint64_t;
00065 #ifndef _SIZE_T_DEFINED_
00066 #define _SIZE_T_DEFINED_
00067 typedef unsigned int size_t;
00068 #endif
00069 typedef unsigned int uintptr_t;
00070 #endif
00071 #define SDL_HAS_64BIT_TYPE 1
00072
00073
00074 #define HAVE_LIBC 1
00075 #ifdef HAVE_LIBC
00076
00077 #define HAVE_STDIO_H 1
00078 #define STDC_HEADERS 1
00079 #define HAVE_STRING_H 1
00080 #define HAVE_CTYPE_H 1
00081 #define HAVE_MATH_H 1
00082 #ifndef _WIN32_WCE
00083 #define HAVE_SIGNAL_H 1
00084 #endif
00085
00086
00087 #define HAVE_MALLOC 1
00088 #define HAVE_CALLOC 1
00089 #define HAVE_REALLOC 1
00090 #define HAVE_FREE 1
00091 #define HAVE_ALLOCA 1
00092 #define HAVE_QSORT 1
00093 #define HAVE_ABS 1
00094 #define HAVE_MEMSET 1
00095 #define HAVE_MEMCPY 1
00096 #define HAVE_MEMMOVE 1
00097 #define HAVE_MEMCMP 1
00098 #define HAVE_STRLEN 1
00099 #define HAVE__STRREV 1
00100 #define HAVE__STRUPR 1
00101 #define HAVE__STRLWR 1
00102 #define HAVE_STRCHR 1
00103 #define HAVE_STRRCHR 1
00104 #define HAVE_STRSTR 1
00105 #define HAVE_ITOA 1
00106 #define HAVE__LTOA 1
00107 #define HAVE__ULTOA 1
00108 #define HAVE_STRTOL 1
00109 #define HAVE_STRTOUL 1
00110 #define HAVE_STRTOLL 1
00111 #define HAVE_STRTOD 1
00112 #define HAVE_ATOI 1
00113 #define HAVE_ATOF 1
00114 #define HAVE_STRCMP 1
00115 #define HAVE_STRNCMP 1
00116 #define HAVE__STRICMP 1
00117 #define HAVE__STRNICMP 1
00118 #define HAVE_SSCANF 1
00119 #else
00120 #define HAVE_STDARG_H 1
00121 #define HAVE_STDDEF_H 1
00122 #endif
00123
00124
00125 #ifndef _WIN32_WCE
00126 #define SDL_AUDIO_DRIVER_DSOUND 1
00127 #endif
00128 #define SDL_AUDIO_DRIVER_WAVEOUT 1
00129 #define SDL_AUDIO_DRIVER_DISK 1
00130 #define SDL_AUDIO_DRIVER_DUMMY 1
00131
00132
00133 #ifdef _WIN32_WCE
00134 #define SDL_CDROM_DISABLED 1
00135 #else
00136 #define SDL_CDROM_WIN32 1
00137 #endif
00138
00139
00140 #ifdef _WIN32_WCE
00141 #define SDL_JOYSTICK_DISABLED 1
00142 #else
00143 #define SDL_JOYSTICK_WINMM 1
00144 #endif
00145
00146
00147 #define SDL_LOADSO_WIN32 1
00148
00149
00150 #define SDL_THREAD_WIN32 1
00151
00152
00153 #ifdef _WIN32_WCE
00154 #define SDL_TIMER_WINCE 1
00155 #else
00156 #define SDL_TIMER_WIN32 1
00157 #endif
00158
00159
00160 #ifdef _WIN32_WCE
00161 #define SDL_VIDEO_DRIVER_GAPI 1
00162 #endif
00163 #ifndef _WIN32_WCE
00164 #define SDL_VIDEO_DRIVER_DDRAW 1
00165 #endif
00166 #define SDL_VIDEO_DRIVER_DUMMY 1
00167 #define SDL_VIDEO_DRIVER_WINDIB 1
00168
00169
00170 #ifndef _WIN32_WCE
00171 #define SDL_VIDEO_OPENGL 1
00172 #define SDL_VIDEO_OPENGL_WGL 1
00173 #endif
00174
00175
00176 #define SDL_VIDEO_DISABLE_SCREENSAVER 1
00177
00178
00179 #ifndef _WIN64
00180 #define SDL_ASSEMBLY_ROUTINES 1
00181 #endif
00182
00183 #endif