diff --git a/src/joystick/iphoneos/SDL_sysjoystick.m b/src/joystick/iphoneos/SDL_sysjoystick.m index 8094ddad0..920f5ddca 100644 --- a/src/joystick/iphoneos/SDL_sysjoystick.m +++ b/src/joystick/iphoneos/SDL_sysjoystick.m @@ -42,7 +42,6 @@ #if !TARGET_OS_TV #import #endif -#import #ifdef SDL_JOYSTICK_MFI #import @@ -80,6 +79,10 @@ static id disconnectObserver = nil; #define ENABLE_MFI_RUMBLE #endif +#ifdef ENABLE_MFI_RUMBLE +#import +#endif + #endif /* SDL_JOYSTICK_MFI */ #if !TARGET_OS_TV