Fix errors encountered when compiling for v140_xp target

This commit is contained in:
N.E.C 2016-10-02 13:05:26 -07:00
commit 671646be26
2 changed files with 36 additions and 13 deletions

View file

@ -27,6 +27,12 @@
// MACROS ------------------------------------------------------------------
// This macro is defined by newer versions of xinput.h. In case we are
// compiling with an older version, define it here.
#ifndef XUSER_MAX_COUNT
#define XUSER_MAX_COUNT 4
#endif
// TYPES -------------------------------------------------------------------
typedef DWORD (WINAPI *XInputGetStateType)(DWORD index, XINPUT_STATE *state);