| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | #define HAVE_XINPUT_H 1 |
| | | #define HAVE_MMDEVICEAPI_H 1 |
| | | #define HAVE_AUDIOCLIENT_H 1 |
| | | #define HAVE_ENDPOINTVOLUME_H 1 |
| | | #define HAVE_SENSORSAPI_H |
| | | |
| | | /* This is disabled by default to avoid C runtime dependencies and manifest requirements */ |
| | | #ifdef HAVE_LIBC |
| | |
| | | #define HAVE_STRCHR 1 |
| | | #define HAVE_STRRCHR 1 |
| | | #define HAVE_STRSTR 1 |
| | | /* #undef HAVE_STRTOK_R */ |
| | | #if defined(_MSC_VER) |
| | | #define HAVE_STRTOK_S 1 |
| | | #endif |
| | | /* These functions have security warnings, so we won't use them */ |
| | | /* #undef HAVE__LTOA */ |
| | | /* #undef HAVE__ULTOA */ |
| | |
| | | #define HAVE_STRNCMP 1 |
| | | #define HAVE__STRICMP 1 |
| | | #define HAVE__STRNICMP 1 |
| | | #define HAVE__WCSICMP 1 |
| | | #define HAVE__WCSNICMP 1 |
| | | #define HAVE_ACOS 1 |
| | | #define HAVE_ACOSF 1 |
| | | #define HAVE_ASIN 1 |
| | |
| | | #define HAVE_VSSCANF 1 |
| | | #define HAVE_SCALBN 1 |
| | | #define HAVE_SCALBNF 1 |
| | | #define HAVE_TRUNC 1 |
| | | #define HAVE_TRUNCF 1 |
| | | #endif |
| | | /* This function is available with at least the VC++ 2008 C runtime library */ |
| | | #if _MSC_VER >= 1400 |
| | |
| | | #define HAVE_STDDEF_H 1 |
| | | #endif |
| | | |
| | | /* Check to see if we have Windows 10 build environment */ |
| | | #if _MSC_VER >= 1911 /* Visual Studio 15.3 */ |
| | | #include <sdkddkver.h> |
| | | #if _WIN32_WINNT >= 0x0601 /* Windows 7 */ |
| | | #define SDL_WINDOWS7_SDK |
| | | #endif |
| | | #if _WIN32_WINNT >= 0x0602 /* Windows 8 */ |
| | | #define SDL_WINDOWS8_SDK |
| | | #endif |
| | | #if _WIN32_WINNT >= 0x0A00 /* Windows 10 */ |
| | | #define SDL_WINDOWS10_SDK |
| | | #endif |
| | | #endif /* _MSC_VER >= 1911 */ |
| | | |
| | | /* Enable various audio drivers */ |
| | | #define SDL_AUDIO_DRIVER_WASAPI 1 |
| | | #define SDL_AUDIO_DRIVER_DSOUND 1 |
| | |
| | | |
| | | /* Enable various input drivers */ |
| | | #define SDL_JOYSTICK_DINPUT 1 |
| | | #define SDL_JOYSTICK_XINPUT 1 |
| | | #define SDL_JOYSTICK_HIDAPI 1 |
| | | #ifndef __WINRT__ |
| | | #define SDL_JOYSTICK_RAWINPUT 1 |
| | | #endif |
| | | #define SDL_JOYSTICK_VIRTUAL 1 |
| | | #ifdef SDL_WINDOWS10_SDK |
| | | #define SDL_JOYSTICK_WGI 1 |
| | | #endif |
| | | #define SDL_JOYSTICK_XINPUT 1 |
| | | #define SDL_HAPTIC_DINPUT 1 |
| | | #define SDL_HAPTIC_XINPUT 1 |
| | | |
| | | /* Enable the dummy sensor driver */ |
| | | #define SDL_SENSOR_DUMMY 1 |
| | | /* Enable the sensor driver */ |
| | | #define SDL_SENSOR_WINDOWS 1 |
| | | |
| | | /* Enable various shared object loading systems */ |
| | | #define SDL_LOADSO_WINDOWS 1 |
| | |
| | | #ifndef SDL_VIDEO_RENDER_D3D |
| | | #define SDL_VIDEO_RENDER_D3D 1 |
| | | #endif |
| | | #ifndef SDL_VIDEO_RENDER_D3D11 |
| | | #define SDL_VIDEO_RENDER_D3D11 0 |
| | | #ifdef SDL_WINDOWS7_SDK |
| | | #define SDL_VIDEO_RENDER_D3D11 1 |
| | | #endif |
| | | |
| | | /* Enable OpenGL support */ |
| | |
| | | #endif |
| | | |
| | | #endif /* SDL_config_windows_h_ */ |
| | | |
| | | /* vi: set ts=4 sw=4 expandtab: */ |