22 #ifndef SDL_config_windows_h_
23 #define SDL_config_windows_h_
30 #if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
31 #if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__)
32 #define HAVE_STDINT_H 1
33 #elif defined(_MSC_VER)
34 typedef signed __int8 int8_t;
35 typedef unsigned __int8 uint8_t;
36 typedef signed __int16 int16_t;
37 typedef unsigned __int16 uint16_t;
38 typedef signed __int32 int32_t;
39 typedef unsigned __int32 uint32_t;
40 typedef signed __int64 int64_t;
41 typedef unsigned __int64 uint64_t;
42 #ifndef _UINTPTR_T_DEFINED
44 typedef unsigned __int64 uintptr_t;
46 typedef unsigned int uintptr_t;
48 #define _UINTPTR_T_DEFINED
51 #if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
52 #define DWORD_PTR DWORD
54 #if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
58 typedef signed char int8_t;
59 typedef unsigned char uint8_t;
60 typedef signed short int16_t;
61 typedef unsigned short uint16_t;
62 typedef signed int int32_t;
63 typedef unsigned int uint32_t;
64 typedef signed long long int64_t;
65 typedef unsigned long long uint64_t;
66 #ifndef _SIZE_T_DEFINED_
67 #define _SIZE_T_DEFINED_
68 typedef unsigned int size_t;
70 typedef unsigned int uintptr_t;
75 # define SIZEOF_VOIDP 8
77 # define SIZEOF_VOIDP 4
80 #define HAVE_DDRAW_H 1
81 #define HAVE_DINPUT_H 1
82 #define HAVE_DSOUND_H 1
84 #define HAVE_XINPUT_H 1
85 #define HAVE_MMDEVICEAPI_H 1
86 #define HAVE_AUDIOCLIENT_H 1
87 #define HAVE_SENSORSAPI_H
92 #define STDC_HEADERS 1
93 #define HAVE_CTYPE_H 1
94 #define HAVE_FLOAT_H 1
95 #define HAVE_LIMITS_H 1
97 #define HAVE_SIGNAL_H 1
98 #define HAVE_STDIO_H 1
99 #define HAVE_STRING_H 1
102 #define HAVE_MALLOC 1
103 #define HAVE_CALLOC 1
104 #define HAVE_REALLOC 1
106 #define HAVE_ALLOCA 1
109 #define HAVE_MEMSET 1
110 #define HAVE_MEMCPY 1
111 #define HAVE_MEMMOVE 1
112 #define HAVE_MEMCMP 1
113 #define HAVE_STRLEN 1
114 #define HAVE__STRREV 1
118 #define HAVE_STRCHR 1
119 #define HAVE_STRRCHR 1
120 #define HAVE_STRSTR 1
122 #if defined(_MSC_VER)
123 #define HAVE_STRTOK_S 1
128 #define HAVE_STRTOL 1
129 #define HAVE_STRTOUL 1
130 #define HAVE_STRTOD 1
133 #define HAVE_STRCMP 1
134 #define HAVE_STRNCMP 1
135 #define HAVE__STRICMP 1
136 #define HAVE__STRNICMP 1
137 #define HAVE__WCSICMP 1
138 #define HAVE__WCSNICMP 1
146 #define HAVE_ATAN2F 1
148 #define HAVE__COPYSIGN 1
156 #define HAVE_FLOORF 1
162 #define HAVE_LOG10F 1
171 #if defined(_MSC_VER)
174 #define HAVE_STRTOLL 1
175 #define HAVE_VSSCANF 1
176 #define HAVE_SCALBN 1
177 #define HAVE_SCALBNF 1
179 #define HAVE_TRUNCF 1
183 #define HAVE__FSEEKI64 1
186 #if !defined(_MSC_VER) || defined(_USE_MATH_DEFINES)
190 #define HAVE_STDARG_H 1
191 #define HAVE_STDDEF_H 1
196 #include <sdkddkver.h>
197 #if _WIN32_WINNT >= 0x0601
198 #define SDL_WINDOWS7_SDK
200 #if _WIN32_WINNT >= 0x0602
201 #define SDL_WINDOWS8_SDK
203 #if _WIN32_WINNT >= 0x0A00
204 #define SDL_WINDOWS10_SDK
209 #define SDL_AUDIO_DRIVER_WASAPI 1
210 #define SDL_AUDIO_DRIVER_DSOUND 1
211 #define SDL_AUDIO_DRIVER_WINMM 1
212 #define SDL_AUDIO_DRIVER_DISK 1
213 #define SDL_AUDIO_DRIVER_DUMMY 1
216 #define SDL_JOYSTICK_DINPUT 1
217 #define SDL_JOYSTICK_HIDAPI 1
219 #define SDL_JOYSTICK_RAWINPUT 1
221 #define SDL_JOYSTICK_VIRTUAL 1
222 #ifdef SDL_WINDOWS10_SDK
223 #define SDL_JOYSTICK_WGI 1
225 #define SDL_JOYSTICK_XINPUT 1
226 #define SDL_HAPTIC_DINPUT 1
227 #define SDL_HAPTIC_XINPUT 1
230 #define SDL_SENSOR_WINDOWS 1
233 #define SDL_LOADSO_WINDOWS 1
236 #define SDL_THREAD_WINDOWS 1
239 #define SDL_TIMER_WINDOWS 1
242 #define SDL_VIDEO_DRIVER_DUMMY 1
243 #define SDL_VIDEO_DRIVER_WINDOWS 1
245 #ifndef SDL_VIDEO_RENDER_D3D
246 #define SDL_VIDEO_RENDER_D3D 1
248 #ifdef SDL_WINDOWS7_SDK
249 #define SDL_VIDEO_RENDER_D3D11 1
253 #ifndef SDL_VIDEO_OPENGL
254 #define SDL_VIDEO_OPENGL 1
256 #ifndef SDL_VIDEO_OPENGL_WGL
257 #define SDL_VIDEO_OPENGL_WGL 1
259 #ifndef SDL_VIDEO_RENDER_OGL
260 #define SDL_VIDEO_RENDER_OGL 1
262 #ifndef SDL_VIDEO_RENDER_OGL_ES2
263 #define SDL_VIDEO_RENDER_OGL_ES2 1
265 #ifndef SDL_VIDEO_OPENGL_ES2
266 #define SDL_VIDEO_OPENGL_ES2 1
268 #ifndef SDL_VIDEO_OPENGL_EGL
269 #define SDL_VIDEO_OPENGL_EGL 1
273 #define SDL_VIDEO_VULKAN 1
276 #define SDL_POWER_WINDOWS 1
279 #define SDL_FILESYSTEM_WINDOWS 1
283 #define SDL_ASSEMBLY_ROUTINES 1