Commit 90454b1ece9b394e7be6029df1c26d38b397c8ef

Ozkan Sezer 2018-08-16T11:01:02

SDL_hidapi_ps4.c: define NTDDI_VISTA / _WIN32_WINNT_VISTA if not defined it still needs a Vista or newer Platform SDK to build, though.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/joystick/hidapi/SDL_hidapi_ps4.c b/src/joystick/hidapi/SDL_hidapi_ps4.c
index f620d00..8f9337c 100644
--- a/src/joystick/hidapi/SDL_hidapi_ps4.c
+++ b/src/joystick/hidapi/SDL_hidapi_ps4.c
@@ -138,6 +138,13 @@ static Uint32 crc32(Uint32 crc, const void *data, int count)
 #ifdef __WIN32__
 #include "../../core/windows/SDL_windows.h"
 
+#ifndef NTDDI_VISTA
+#define NTDDI_VISTA    0x06000000
+#endif
+#ifndef _WIN32_WINNT_VISTA
+#define _WIN32_WINNT_VISTA 0x0600
+#endif
+
 /* Define Vista for the Audio related includes below to work */
 #undef NTDDI_VERSION
 #define NTDDI_VERSION NTDDI_VISTA