Skip to content

Commit

Permalink
SDL_hidapi_ps4.c: define NTDDI_VISTA / _WIN32_WINNT_VISTA if not defined
Browse files Browse the repository at this point in the history
it still needs a Vista or newer Platform SDK to build, though.
  • Loading branch information
sezero committed Aug 16, 2018
1 parent 7d3a7ef commit 90454b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/joystick/hidapi/SDL_hidapi_ps4.c
Expand Up @@ -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
Expand Down

0 comments on commit 90454b1

Please sign in to comment.