From 2d651c43a15c885557b9b894342fc77aca2bcfa9 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Mon, 27 Mar 2023 14:59:48 +0200 Subject: [PATCH] Fix -Wundef warnings due to use of unguarded SDL_HAPTIC_DISABLED --- src/SDL.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SDL.c b/src/SDL.c index a03d22bbc6..57e3110fd8 100644 --- a/src/SDL.c +++ b/src/SDL.c @@ -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();