mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-19 19:28:28 +00:00
cmake: Fix WGI detection with older SDKs
This commit is contained in:
parent
398c0fdff0
commit
83583dc49d
1 changed files with 5 additions and 1 deletions
|
@ -1568,7 +1568,11 @@ elseif(WINDOWS)
|
||||||
#include <xinput.h>
|
#include <xinput.h>
|
||||||
XINPUT_STATE_EX s1;
|
XINPUT_STATE_EX s1;
|
||||||
int main(int argc, char **argv) { }" HAVE_XINPUT_STATE_EX)
|
int main(int argc, char **argv) { }" HAVE_XINPUT_STATE_EX)
|
||||||
check_include_file(windows.gaming.input.h HAVE_WINDOWS_GAMING_INPUT_H)
|
check_c_source_compiles("
|
||||||
|
#define COBJMACROS
|
||||||
|
#include <windows.gaming.input.h>
|
||||||
|
__x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
|
||||||
|
int main(int argc, char **argv) { }" HAVE_WINDOWS_GAMING_INPUT_H)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# headers needed elsewhere
|
# headers needed elsewhere
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue