From 90454b1ece9b394e7be6029df1c26d38b397c8ef Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 16 Aug 2018 11:01:02 +0300 Subject: [PATCH] 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. --- src/joystick/hidapi/SDL_hidapi_ps4.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/joystick/hidapi/SDL_hidapi_ps4.c b/src/joystick/hidapi/SDL_hidapi_ps4.c index f620d000ebbf5..8f9337c9f6650 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