From 402c24ec8baf10d6445213f1552cbeaaf0b55643 Mon Sep 17 00:00:00 2001 From: Aren Villanueva Date: Mon, 16 Nov 2015 11:07:21 +1100 Subject: iOS compile fixes. --- platform/iphone/game_center.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/iphone/game_center.mm') diff --git a/platform/iphone/game_center.mm b/platform/iphone/game_center.mm index 79c056776d..1e46d9f014 100644 --- a/platform/iphone/game_center.mm +++ b/platform/iphone/game_center.mm @@ -30,8 +30,8 @@ #include "game_center.h" -extern "C" { #import +extern "C" { #import "app_delegate.h" }; -- cgit v1.2.3 From e68c2c6c2a14c32e7c07ab3158fc459b104212d3 Mon Sep 17 00:00:00 2001 From: Aren Villanueva Date: Mon, 16 Nov 2015 12:31:44 +1100 Subject: Use macros to determine which iOS SDK we have in order to be backwards compatible with older SDKs when fixing template compilation issues. --- platform/iphone/game_center.mm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'platform/iphone/game_center.mm') diff --git a/platform/iphone/game_center.mm b/platform/iphone/game_center.mm index 1e46d9f014..4cb7a20a7f 100644 --- a/platform/iphone/game_center.mm +++ b/platform/iphone/game_center.mm @@ -30,8 +30,18 @@ #include "game_center.h" +#ifdef __IPHONE_9_0 + #import extern "C" { + +#else + +extern "C" { +#import + +#endif + #import "app_delegate.h" }; -- cgit v1.2.3