Use macros to determine which iOS SDK we have in order to be backwards compatible with older SDKs when fixing template compilation issues.

This commit is contained in:
Aren Villanueva 2015-11-16 12:31:44 +11:00
parent e420b69606
commit e68c2c6c2a
2 changed files with 18 additions and 0 deletions

View file

@ -30,8 +30,18 @@
#include "game_center.h"
#ifdef __IPHONE_9_0
#import <GameKit/GameKit.h>
extern "C" {
#else
extern "C" {
#import <GameKit/GameKit.h>
#endif
#import "app_delegate.h"
};

View file

@ -30,9 +30,17 @@
#include "icloud.h"
#ifndef __IPHONE_9_0
extern "C" {
#endif
#import <Foundation/Foundation.h>
#import "app_delegate.h"
#ifndef __IPHONE_9_0
};
#endif
ICloud* ICloud::instance = NULL;
void ICloud::_bind_methods() {