Commit e90f87bab0f73232bc8b0665238426750206797e

Ryan C. Gordon 2015-05-28T01:08:33

Another attempt to get this to compile.

diff --git a/src/joystick/windows/SDL_dinputjoystick.c b/src/joystick/windows/SDL_dinputjoystick.c
index 8853759..e30e010 100644
--- a/src/joystick/windows/SDL_dinputjoystick.c
+++ b/src/joystick/windows/SDL_dinputjoystick.c
@@ -867,7 +867,7 @@ SDL_DINPUT_JoystickQuit(void)
 
 #else /* !SDL_JOYSTICK_DINPUT */
 
-struct JoyStick_DeviceData;
+typedef struct JoyStick_DeviceData JoyStick_DeviceData;
 
 int
 SDL_DINPUT_JoystickInit(void)
diff --git a/src/joystick/windows/SDL_xinputjoystick.c b/src/joystick/windows/SDL_xinputjoystick.c
index d29bc28..b1c22ab 100644
--- a/src/joystick/windows/SDL_xinputjoystick.c
+++ b/src/joystick/windows/SDL_xinputjoystick.c
@@ -339,7 +339,7 @@ SDL_SYS_IsXInputGamepad_DeviceIndex(int device_index)
 
 #else /* !SDL_JOYSTICK_XINPUT */
 
-struct JoyStick_DeviceData;
+typedef struct JoyStick_DeviceData JoyStick_DeviceData;
 
 SDL_bool SDL_XINPUT_Enabled(void)
 {