Преглед на файлове

Fix compile error with XInputOnGameInput.h

(cherry picked from commit d766f68cb30b058277b8d574c9d5a230265cbe73)
Caleb Cornett преди 2 години
родител
ревизия
71cd1fa595
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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