Explorar o código

Fix compile error with XInputOnGameInput.h

Caleb Cornett hai 1 ano
pai
achega
d766f68cb3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/core/windows/SDL_xinput.h

+ 1 - 0
src/core/windows/SDL_xinput.h

@@ -28,6 +28,7 @@
 #ifdef HAVE_XINPUT_H
 #ifdef HAVE_XINPUT_H
 #if defined(__XBOXONE__) || defined(__XBOXSERIES__)
 #if defined(__XBOXONE__) || defined(__XBOXSERIES__)
 /* Xbox supports an XInput wrapper which is a C++-only header... */
 /* Xbox supports an XInput wrapper which is a C++-only header... */
+#include <math.h> /* Required to compile with recent MSVC... */
 #include <XInputOnGameInput.h>
 #include <XInputOnGameInput.h>
 using namespace XInputOnGameInput;
 using namespace XInputOnGameInput;
 #else
 #else