Browse Source

Fix compile error with XInputOnGameInput.h

Caleb Cornett 1 year ago
parent
commit
d766f68cb3
1 changed files with 1 additions and 0 deletions
  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
 #if defined(__XBOXONE__) || defined(__XBOXSERIES__)
 /* Xbox supports an XInput wrapper which is a C++-only header... */
+#include <math.h> /* Required to compile with recent MSVC... */
 #include <XInputOnGameInput.h>
 using namespace XInputOnGameInput;
 #else