Fix various #if defineds

This commit is contained in:
L zard
2024-11-02 16:47:44 +01:00
committed by Sam Lantinga
parent f2b7495adc
commit c2508d5d99
3 changed files with 3 additions and 3 deletions

View File

@@ -77,7 +77,7 @@
#include "../SDL_joystick_c.h"
#include "../hidapi/SDL_hidapijoystick_c.h"
#if defined(SDL_PLATFORM_FREEBSD) || SDL_HAVE_MACHINE_JOYSTICK_H || defined(__FreeBSD_kernel__) || defined(__DragonFly_)
#if defined(SDL_PLATFORM_FREEBSD) || defined(SDL_HAVE_MACHINE_JOYSTICK_H) || defined(__FreeBSD_kernel__) || defined(__DragonFly_)
#define SUPPORT_JOY_GAMEPORT
#endif

View File

@@ -20,7 +20,7 @@
*/
#include "SDL_internal.h"
#if defined(SDL_JOYSTICK_DINPUT) || SDL_JOYSTICK_XINPUT
#if defined(SDL_JOYSTICK_DINPUT) || defined(SDL_JOYSTICK_XINPUT)
/* DirectInput joystick driver; written by Glenn Maynard, based on Andrei de
* A. Formiga's WINMM driver.

View File

@@ -533,7 +533,7 @@ bool SDL_RemoveTimer(SDL_TimerID id)
}
}
#endif // !defined(SDL_PLATFORM_EMSCRIPTEN) || !SDL_THREADS_DISABLED
#endif // !SDL_PLATFORM_EMSCRIPTEN || !SDL_THREADS_DISABLED
static Uint64 tick_start;
static Uint32 tick_numerator_ns;