Fix -Wundef warnings due to use of unguarded SDL_HAPTIC_DISABLED

This commit is contained in:
Anonymous Maarten
2023-03-27 14:59:48 +02:00
parent 4b9d10c9a5
commit 2d651c43a1

View File

@@ -312,7 +312,7 @@ int SDL_InitSubSystem(Uint32 flags)
/* Initialize the haptic subsystem */
if (flags & SDL_INIT_HAPTIC) {
#if !SDL_HAPTIC_DISABLED
#ifndef SDL_HAPTIC_DISABLED
if (SDL_ShouldInitSubsystem(SDL_INIT_HAPTIC)) {
SDL_IncrementSubsystemRefCount(SDL_INIT_HAPTIC);
if (SDL_InitHaptics() < 0) {
@@ -396,7 +396,7 @@ void SDL_QuitSubSystem(Uint32 flags)
}
#endif
#if !SDL_HAPTIC_DISABLED
#ifndef SDL_HAPTIC_DISABLED
if (flags & SDL_INIT_HAPTIC) {
if (SDL_ShouldQuitSubsystem(SDL_INIT_HAPTIC)) {
SDL_QuitHaptics();