Fix -Wundef warnings due to use of unguarded SDL_HAPTIC_DISABLED
This commit is contained in:
1 parent
4b9d10c9a5
commit
2d651c43a1
1 file changed
+2
-2
@@ -312,7 +312,7 @@ int SDL_InitSubSystem(Uint32 flags)
|
|||||||
|
|
||||||
/* Initialize the haptic subsystem */
|
/* Initialize the haptic subsystem */
|
||||||
if (flags & SDL_INIT_HAPTIC) {
|
if (flags & SDL_INIT_HAPTIC) {
|
||||||
#if !SDL_HAPTIC_DISABLED
|
#ifndef SDL_HAPTIC_DISABLED
|
||||||
if (SDL_ShouldInitSubsystem(SDL_INIT_HAPTIC)) {
|
if (SDL_ShouldInitSubsystem(SDL_INIT_HAPTIC)) {
|
||||||
SDL_IncrementSubsystemRefCount(SDL_INIT_HAPTIC);
|
SDL_IncrementSubsystemRefCount(SDL_INIT_HAPTIC);
|
||||||
if (SDL_InitHaptics() < 0) {
|
if (SDL_InitHaptics() < 0) {
|
||||||
@@ -396,7 +396,7 @@ void SDL_QuitSubSystem(Uint32 flags)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !SDL_HAPTIC_DISABLED
|
#ifndef SDL_HAPTIC_DISABLED
|
||||||
if (flags & SDL_INIT_HAPTIC) {
|
if (flags & SDL_INIT_HAPTIC) {
|
||||||
if (SDL_ShouldQuitSubsystem(SDL_INIT_HAPTIC)) {
|
if (SDL_ShouldQuitSubsystem(SDL_INIT_HAPTIC)) {
|
||||||
SDL_QuitHaptics();
|
SDL_QuitHaptics();
|
||||||
|
|||||||
Reference in new issue
Block a user