Skip to content

Commit

Permalink
Patched to compile on MingW.
Browse files Browse the repository at this point in the history
(I think!)
  • Loading branch information
icculus committed May 28, 2015
1 parent 58447b2 commit 4add169
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/joystick/windows/SDL_dinputjoystick.c
Expand Up @@ -20,9 +20,10 @@
*/
#include "../../SDL_internal.h"

#include "../SDL_sysjoystick.h"

#if SDL_JOYSTICK_DINPUT

#include "../SDL_sysjoystick.h"
#include "SDL_windowsjoystick_c.h"
#include "SDL_dinputjoystick_c.h"
#include "SDL_xinputjoystick_c.h"
Expand Down Expand Up @@ -866,6 +867,7 @@ SDL_DINPUT_JoystickQuit(void)

#else /* !SDL_JOYSTICK_DINPUT */

struct JoyStick_DeviceData;

int
SDL_DINPUT_JoystickInit(void)
Expand Down
4 changes: 3 additions & 1 deletion src/joystick/windows/SDL_xinputjoystick.c
Expand Up @@ -20,11 +20,12 @@
*/
#include "../../SDL_internal.h"

#include "../SDL_sysjoystick.h"

#if SDL_JOYSTICK_XINPUT

#include "SDL_assert.h"
#include "SDL_hints.h"
#include "../SDL_sysjoystick.h"
#include "SDL_windowsjoystick_c.h"
#include "SDL_xinputjoystick_c.h"

Expand Down Expand Up @@ -338,6 +339,7 @@ SDL_SYS_IsXInputGamepad_DeviceIndex(int device_index)

#else /* !SDL_JOYSTICK_XINPUT */

struct JoyStick_DeviceData;

SDL_bool SDL_XINPUT_Enabled(void)
{
Expand Down

0 comments on commit 4add169

Please sign in to comment.