From 7935cfacc52a33a164880e3e8d3df4021e737fc7 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 8 Feb 2022 18:55:10 +0300 Subject: [PATCH] SDL_mfijoystick.m: use __typeof instead of typeof. Fixes https://github.com/libsdl-org/SDL/issues/5319 --- src/joystick/iphoneos/SDL_mfijoystick.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/iphoneos/SDL_mfijoystick.m b/src/joystick/iphoneos/SDL_mfijoystick.m index ed2384255..0f8148029 100644 --- a/src/joystick/iphoneos/SDL_mfijoystick.m +++ b/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) {