Skip to content

Commit

Permalink
Fixed building with an older SDK and macOS target
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 24, 2020
1 parent 1fc5ca6 commit 1e943e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/SDL_config_macosx.h
Expand Up @@ -147,7 +147,7 @@
#define SDL_HAPTIC_IOKIT 1

/* The MFI controller support requires ARC Objective C runtime */
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__)
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 && !defined(__i386__)
#define SDL_JOYSTICK_MFI 1
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/joystick/iphoneos/SDL_mfijoystick.m
Expand Up @@ -42,7 +42,7 @@
#include "../../events/SDL_events_c.h"
#endif

#if !TARGET_OS_TV && !TARGET_OS_OSX
#if TARGET_OS_IOS
#define SDL_JOYSTICK_iOS_ACCELEROMETER
#import <CoreMotion/CoreMotion.h>
#endif
Expand Down

0 comments on commit 1e943e2

Please sign in to comment.