Browse Source

WinRT: build fix in joystick code

David Ludwig 8 years ago
parent
commit
3c8a26984d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/joystick/windows/SDL_windowsjoystick_c.h

+ 2 - 0
src/joystick/windows/SDL_windowsjoystick_c.h

@@ -83,7 +83,9 @@ struct joystick_hwdata
     DWORD dwPacketNumber;
 };
 
+#if SDL_JOYSTICK_DINPUT
 extern const DIDATAFORMAT SDL_c_dfDIJoystick2;
+#endif
 
 extern void SDL_SYS_AddJoystickDevice(JoyStick_DeviceData *device);