Fix -Wundef warnings due to use of unguarded SDL_VIDEO_DISABLED
This commit is contained in:
1 parent
ed4cd28e9f
commit
2b39d63f27
1 file changed
+2
-2
@@ -237,7 +237,7 @@ int SDL_InitSubSystem(Uint32 flags)
|
|||||||
|
|
||||||
/* Initialize the video subsystem */
|
/* Initialize the video subsystem */
|
||||||
if (flags & SDL_INIT_VIDEO) {
|
if (flags & SDL_INIT_VIDEO) {
|
||||||
#if !SDL_VIDEO_DISABLED
|
#ifndef SDL_VIDEO_DISABLED
|
||||||
if (SDL_ShouldInitSubsystem(SDL_INIT_VIDEO)) {
|
if (SDL_ShouldInitSubsystem(SDL_INIT_VIDEO)) {
|
||||||
SDL_IncrementSubsystemRefCount(SDL_INIT_VIDEO);
|
SDL_IncrementSubsystemRefCount(SDL_INIT_VIDEO);
|
||||||
if (SDL_VideoInit(NULL) < 0) {
|
if (SDL_VideoInit(NULL) < 0) {
|
||||||
@@ -417,7 +417,7 @@ void SDL_QuitSubSystem(Uint32 flags)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !SDL_VIDEO_DISABLED
|
#ifndef SDL_VIDEO_DISABLED
|
||||||
if (flags & SDL_INIT_VIDEO) {
|
if (flags & SDL_INIT_VIDEO) {
|
||||||
/* video implies events */
|
/* video implies events */
|
||||||
flags |= SDL_INIT_EVENTS;
|
flags |= SDL_INIT_EVENTS;
|
||||||
|
|||||||
Reference in new issue
Block a user