diff --git a/lib/irrlicht/source/Irrlicht/CIrrDeviceWin32.cpp b/lib/irrlicht/source/Irrlicht/CIrrDeviceWin32.cpp index 32863337c..90fc86c1e 100644 --- a/lib/irrlicht/source/Irrlicht/CIrrDeviceWin32.cpp +++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceWin32.cpp @@ -23,12 +23,11 @@ // This define will switch to use XInput 9.1, which does not // require an installer and works on most windows platforms. // See https://blogs.msdn.microsoft.com/chuckw/2012/04/25/xinput-and-windows-8/ -#ifdef __CYGWIN__ -#define _WIN32_WINNT 0x0601 -#include -#else #undef _WIN32_WINNT #define _WIN32_WINNT 0x0601 +#ifdef __CYGWIN__ +#include +#else #include #endif #ifdef _IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_