mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 06:58:30 +00:00
Don't compile helper function when building without audio/video/joystick support
This commit is contained in:

committed by
Anonymous Maarten

parent
98bed62259
commit
625a8335b5
@@ -237,6 +237,7 @@ static bool SDL_ShouldQuitSubsystem(Uint32 subsystem)
|
||||
return (((subsystem_index >= 0) && (SDL_SubsystemRefCount[subsystem_index] == 1)) || SDL_bInMainQuit);
|
||||
}
|
||||
|
||||
#if !defined(SDL_VIDEO_DISABLED) || !defined(SDL_AUDIO_DISABLED) || !defined(SDL_JOYSTICK_DISABLED)
|
||||
/* Private helper to either increment's existing ref counter,
|
||||
* or fully init a new subsystem. */
|
||||
static bool SDL_InitOrIncrementSubsystem(Uint32 subsystem)
|
||||
@@ -252,6 +253,7 @@ static bool SDL_InitOrIncrementSubsystem(Uint32 subsystem)
|
||||
}
|
||||
return SDL_InitSubSystem(subsystem);
|
||||
}
|
||||
#endif // !SDL_VIDEO_DISABLED || !SDL_AUDIO_DISABLED || !SDL_JOYSTICK_DISABLED
|
||||
|
||||
void SDL_SetMainReady(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user