From eb608fc09fd88cfcd34f73c880bc801589b4ddf2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 28 Feb 2015 05:55:08 +0100 Subject: [PATCH] (iOS) Make GAMECONTROLLER_EXPORT blank when trying to compile on systems with iOS 6 SDK --- apple/common/GameController/GameController.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apple/common/GameController/GameController.h b/apple/common/GameController/GameController.h index 6cdc03e229..30735c35b9 100644 --- a/apple/common/GameController/GameController.h +++ b/apple/common/GameController/GameController.h @@ -6,6 +6,7 @@ // #import +#import #ifdef __cplusplus #define GAMECONTROLLER_EXTERN extern "C" __attribute__((visibility ("default"))) @@ -13,7 +14,11 @@ #define GAMECONTROLLER_EXTERN extern __attribute__((visibility ("default"))) #endif +#ifndef __IPHONE_7_0 +#define GAMECONTROLLER_EXPORT +#else #define GAMECONTROLLER_EXPORT NS_CLASS_AVAILABLE(10_9, 7_0) +#endif #import "GCControllerElement.h"