Browse Source

iOS: Remove (seemingly?) unneded `extern C` blocks that break build

Rémi Verschelde 10 months ago
parent
commit
6c3befc70b
3 changed files with 1 additions and 22 deletions
  1. 1 12
      platform/iphone/game_center.mm
  2. 0 8
      platform/iphone/icloud.mm
  3. 0 2
      platform/iphone/in_app_store.mm

+ 1 - 12
platform/iphone/game_center.mm

@@ -32,21 +32,10 @@
 
 #include "game_center.h"
 
-#ifdef __IPHONE_9_0
-
-#import <GameKit/GameKit.h>
-extern "C" {
-
-#else
+#import "app_delegate.h"
 
-extern "C" {
 #import <GameKit/GameKit.h>
 
-#endif
-
-#import "app_delegate.h"
-};
-
 GameCenter *GameCenter::instance = NULL;
 
 void GameCenter::_bind_methods() {

+ 0 - 8
platform/iphone/icloud.mm

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

+ 0 - 2
platform/iphone/in_app_store.mm

@@ -32,10 +32,8 @@
 
 #include "in_app_store.h"
 
-extern "C" {
 #import <Foundation/Foundation.h>
 #import <StoreKit/StoreKit.h>
-};
 
 bool auto_finish_transactions = true;
 NSMutableDictionary *pending_transactions = [NSMutableDictionary dictionary];