(iOS) Make GAMECONTROLLER_EXPORT blank when trying to compile on systems

with iOS 6 SDK
This commit is contained in:
twinaphex 2015-02-28 05:55:08 +01:00
parent fdd7d8be88
commit eb608fc09f

View File

@ -6,6 +6,7 @@
//
#import <Foundation/Foundation.h>
#import <Availability.h>
#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"