More patching to compile...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
diff --git a/src/haptic/windows/SDL_dinputhaptic.c b/src/haptic/windows/SDL_dinputhaptic.c
index 21ccace..aeb73e5 100644
--- a/src/haptic/windows/SDL_dinputhaptic.c
+++ b/src/haptic/windows/SDL_dinputhaptic.c
@@ -20,11 +20,12 @@
*/
#include "../../SDL_internal.h"
+#include "SDL_error.h"
+#include "SDL_haptic.h"
+
#if SDL_HAPTIC_DINPUT
-#include "SDL_error.h"
#include "SDL_stdinc.h"
-#include "SDL_haptic.h"
#include "SDL_timer.h"
#include "SDL_windowshaptic_c.h"
#include "SDL_dinputhaptic_c.h"
@@ -1180,6 +1181,8 @@ SDL_DINPUT_HapticStopAll(SDL_Haptic * haptic)
#else /* !SDL_HAPTIC_DINPUT */
+typedef struct DIDEVICEINSTANCE DIDEVICEINSTANCE;
+
int
SDL_DINPUT_HapticInit(void)
{
diff --git a/src/haptic/windows/SDL_xinputhaptic.c b/src/haptic/windows/SDL_xinputhaptic.c
index b2c64d7..83c3a8d 100644
--- a/src/haptic/windows/SDL_xinputhaptic.c
+++ b/src/haptic/windows/SDL_xinputhaptic.c
@@ -20,11 +20,12 @@
*/
#include "../../SDL_internal.h"
+#include "SDL_error.h"
+#include "SDL_haptic.h"
+
#if SDL_HAPTIC_XINPUT
#include "SDL_assert.h"
-#include "SDL_error.h"
-#include "SDL_haptic.h"
#include "SDL_hints.h"
#include "SDL_timer.h"
#include "SDL_windowshaptic_c.h"