From 2b39d63f27569ffa07ec49e22a1c0597e4f2afdf Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Mon, 27 Mar 2023 14:57:25 +0200 Subject: [PATCH] Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DISABLED --- src/SDL.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SDL.c b/src/SDL.c index 2b2cc45d47..c27ad809c5 100644 --- a/src/SDL.c +++ b/src/SDL.c @@ -237,7 +237,7 @@ int SDL_InitSubSystem(Uint32 flags) /* Initialize the video subsystem */ if (flags & SDL_INIT_VIDEO) { -#if !SDL_VIDEO_DISABLED +#ifndef SDL_VIDEO_DISABLED if (SDL_ShouldInitSubsystem(SDL_INIT_VIDEO)) { SDL_IncrementSubsystemRefCount(SDL_INIT_VIDEO); if (SDL_VideoInit(NULL) < 0) { @@ -417,7 +417,7 @@ void SDL_QuitSubSystem(Uint32 flags) } #endif -#if !SDL_VIDEO_DISABLED +#ifndef SDL_VIDEO_DISABLED if (flags & SDL_INIT_VIDEO) { /* video implies events */ flags |= SDL_INIT_EVENTS;