Selaa lähdekoodia

SDL_mfijoystick.m: use __typeof instead of typeof.

Fixes https://github.com/libsdl-org/SDL/issues/5319
Ozkan Sezer 3 vuotta sitten
vanhempi
commit
7935cfacc5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/joystick/iphoneos/SDL_mfijoystick.m

+ 1 - 1
src/joystick/iphoneos/SDL_mfijoystick.m

@@ -1169,7 +1169,7 @@ IOS_MFIJoystickUpdate(SDL_Joystick *joystick)
             return nil;
         }
 
-        __weak typeof(self) weakSelf = self;
+        __weak __typeof(self) weakSelf = self;
         self.engine.stoppedHandler = ^(CHHapticEngineStoppedReason stoppedReason) {
             SDL_RumbleMotor *_this = weakSelf;
             if (_this == nil) {