Fixed build on older Visual Studio, enable new features on newer Visual Studio

This commit is contained in:
Sam Lantinga
2020-04-22 15:42:32 -07:00
parent 589d636bb9
commit 0f374b069b
2 changed files with 12 additions and 3 deletions

View File

@@ -198,7 +198,9 @@ typedef unsigned int uintptr_t;
#define SDL_JOYSTICK_HIDAPI 1
#define SDL_JOYSTICK_RAWINPUT 1
#define SDL_JOYSTICK_VIRTUAL 1
/*#define SDL_JOYSTICK_WGI 1*/ /* This requires Windows SDK 10.0.16299.0 */
#if _MSC_VER >= 1911
#define SDL_JOYSTICK_WGI 1 /* This requires Windows SDK 10.0.16299.0 or newer */
#endif
#define SDL_JOYSTICK_XINPUT 1
#define SDL_HAPTIC_DINPUT 1
#define SDL_HAPTIC_XINPUT 1
@@ -222,8 +224,8 @@ typedef unsigned int uintptr_t;
#ifndef SDL_VIDEO_RENDER_D3D
#define SDL_VIDEO_RENDER_D3D 1
#endif
#ifndef SDL_VIDEO_RENDER_D3D11
#define SDL_VIDEO_RENDER_D3D11 0
#if _MSC_VER >= 1911
#define SDL_VIDEO_RENDER_D3D11 1
#endif
/* Enable OpenGL support */