SDL_hidapi_ps4.c: define NTDDI_VISTA / _WIN32_WINNT_VISTA if not defined
authorOzkan Sezer <sezeroz@gmail.com>
Thu, 16 Aug 2018 11:01:02 +0300
changeset 121200131b11bd03f
parent 12119 648377d0e573
child 12121 4358e537000a
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
     1.1 --- a/src/joystick/hidapi/SDL_hidapi_ps4.c	Wed Aug 15 23:35:54 2018 -0700
     1.2 +++ b/src/joystick/hidapi/SDL_hidapi_ps4.c	Thu Aug 16 11:01:02 2018 +0300
     1.3 @@ -138,6 +138,13 @@
     1.4  #ifdef __WIN32__
     1.5  #include "../../core/windows/SDL_windows.h"
     1.6  
     1.7 +#ifndef NTDDI_VISTA
     1.8 +#define NTDDI_VISTA    0x06000000
     1.9 +#endif
    1.10 +#ifndef _WIN32_WINNT_VISTA
    1.11 +#define _WIN32_WINNT_VISTA 0x0600
    1.12 +#endif
    1.13 +
    1.14  /* Define Vista for the Audio related includes below to work */
    1.15  #undef NTDDI_VERSION
    1.16  #define NTDDI_VERSION NTDDI_VISTA