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:
parent
e420b69606
commit
e68c2c6c2a
2 changed files with 18 additions and 0 deletions
|
@ -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"
|
||||
};
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue