SDL_mfijoystick.m: use __typeof instead of typeof.

Fixes https://github.com/libsdl-org/SDL/issues/5319
This commit is contained in:
Ozkan Sezer 2022-02-08 18:55:10 +03:00
parent 9b817248c5
commit 7935cfacc5
1 changed files with 1 additions and 1 deletions

View File

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