Hopefully fixed cygwin build problems.

This commit is contained in:
hiker
2017-08-09 17:54:29 +10:00
parent 11a587dd30
commit d46b03b317
2 changed files with 7 additions and 1 deletions

View File

@@ -570,5 +570,5 @@ if(ENABLE_WAYLAND_DEVICE)
endif()
if(WIN32)
target_link_libraries(stkirrlicht imm32 XINPUT9_1_0.LIB)
target_link_libraries(stkirrlicht imm32 XINPUT9_1_0)
endif()

View File

@@ -23,8 +23,14 @@
// 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 <xinput.h>
#else
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0601
#include <Xinput.h>
#endif
#ifdef _IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_
#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>