Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DISABLED

This commit is contained in:
Anonymous Maarten
2023-03-27 14:57:25 +02:00
parent ed4cd28e9f
commit 2b39d63f27

View File

@@ -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;