Fix cygwin support.

This commit is contained in:
hiker 2017-08-11 09:38:58 +10:00
parent 86d5e11c13
commit 5b68e18df4
2 changed files with 2 additions and 5 deletions

View File

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

View File

@ -25,11 +25,8 @@
// See https://blogs.msdn.microsoft.com/chuckw/2012/04/25/xinput-and-windows-8/
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0601
#ifdef __CYGWIN__
// Don't change the case of xinput.h, otherwise cygwin compilation fails.
#include <xinput.h>
#else
#include <Xinput.h>
#endif
#ifdef _IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_
#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>