Patched to compile on MingW.
authorRyan C. Gordon
Thu, 28 May 2015 01:02:03 -0400
changeset 9659839c0c3bf555
parent 9658 9753468b5c0e
child 9660 b7188b6a6f2a
Patched to compile on MingW.

(I think!)
src/joystick/windows/SDL_dinputjoystick.c
src/joystick/windows/SDL_xinputjoystick.c
     1.1 --- a/src/joystick/windows/SDL_dinputjoystick.c	Thu May 28 00:54:52 2015 -0400
     1.2 +++ b/src/joystick/windows/SDL_dinputjoystick.c	Thu May 28 01:02:03 2015 -0400
     1.3 @@ -20,9 +20,10 @@
     1.4  */
     1.5  #include "../../SDL_internal.h"
     1.6  
     1.7 +#include "../SDL_sysjoystick.h"
     1.8 +
     1.9  #if SDL_JOYSTICK_DINPUT
    1.10  
    1.11 -#include "../SDL_sysjoystick.h"
    1.12  #include "SDL_windowsjoystick_c.h"
    1.13  #include "SDL_dinputjoystick_c.h"
    1.14  #include "SDL_xinputjoystick_c.h"
    1.15 @@ -866,6 +867,7 @@
    1.16  
    1.17  #else /* !SDL_JOYSTICK_DINPUT */
    1.18  
    1.19 +struct JoyStick_DeviceData;
    1.20  
    1.21  int
    1.22  SDL_DINPUT_JoystickInit(void)
     2.1 --- a/src/joystick/windows/SDL_xinputjoystick.c	Thu May 28 00:54:52 2015 -0400
     2.2 +++ b/src/joystick/windows/SDL_xinputjoystick.c	Thu May 28 01:02:03 2015 -0400
     2.3 @@ -20,11 +20,12 @@
     2.4  */
     2.5  #include "../../SDL_internal.h"
     2.6  
     2.7 +#include "../SDL_sysjoystick.h"
     2.8 +
     2.9  #if SDL_JOYSTICK_XINPUT
    2.10  
    2.11  #include "SDL_assert.h"
    2.12  #include "SDL_hints.h"
    2.13 -#include "../SDL_sysjoystick.h"
    2.14  #include "SDL_windowsjoystick_c.h"
    2.15  #include "SDL_xinputjoystick_c.h"
    2.16  
    2.17 @@ -338,6 +339,7 @@
    2.18  
    2.19  #else /* !SDL_JOYSTICK_XINPUT */
    2.20  
    2.21 +struct JoyStick_DeviceData;
    2.22  
    2.23  SDL_bool SDL_XINPUT_Enabled(void)
    2.24  {