Quellcode durchsuchen

Don't try to build the RAWINPUT driver if HIDAPI is disabled

Sam Lantinga vor 4 Jahren
Ursprung
Commit
b6238c87e4
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/joystick/windows/SDL_rawinputjoystick.c

+ 1 - 1
src/joystick/windows/SDL_rawinputjoystick.c

@@ -40,7 +40,7 @@
 #include "../../core/windows/SDL_windows.h"
 #include "../../core/windows/SDL_windows.h"
 #include "../hidapi/SDL_hidapijoystick_c.h"
 #include "../hidapi/SDL_hidapijoystick_c.h"
 
 
-#ifndef SDL_JOYSTICK_HIDAPI_XBOX360
+#if !defined(SDL_JOYSTICK_HIDAPI) || !defined(SDL_JOYSTICK_HIDAPI_XBOX360)
 #error RAWINPUT requires the XBOX360 HIDAPI driver
 #error RAWINPUT requires the XBOX360 HIDAPI driver
 #endif
 #endif