Skip to content

Commit

Permalink
IOS7: Use #include instead of #import.
Browse files Browse the repository at this point in the history
We always use #include. #import is a nice ObjC feature (in theory), but can
lead to odd results in corner cases.
  • Loading branch information
Johannes Schickel committed Jan 7, 2016
1 parent 17a5744 commit 8fc0387
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion backends/platform/ios7/iOS7AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#ifndef BACKENDS_PLATFORM_IOS7_IOS7_APP_DELEGATE_H
#define BACKENDS_PLATFORM_IOS7_IOS7_APP_DELEGATE_H

#import <UIKit/UIKit.h>
#include <UIKit/UIKit.h>

@class iPhoneView;

Expand Down
6 changes: 3 additions & 3 deletions backends/platform/ios7/iOS7AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
*/

#define FORBIDDEN_SYMBOL_ALLOW_ALL
#import "iOS7AppDelegate.h"
#import "iOS7ScummVMViewController.h"
#import "ios7_video.h"
#include "iOS7AppDelegate.h"
#include "iOS7ScummVMViewController.h"
#include "ios7_video.h"

@implementation iOS7AppDelegate {
UIWindow *_window;
Expand Down
2 changes: 1 addition & 1 deletion backends/platform/ios7/iOS7ScummVMViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#ifndef BACKENDS_PLATFORM_IOS7_IOS7_SCUMMVM_VIEW_CONTROLLER_H
#define BACKENDS_PLATFORM_IOS7_IOS7_SCUMMVM_VIEW_CONTROLLER_H

#import <UIKit/UIKit.h>
#include <UIKit/UIKit.h>


@interface iOS7ScummVMViewController : UIViewController
Expand Down
2 changes: 1 addition & 1 deletion backends/platform/ios7/iOS7ScummVMViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
*/

#import "iOS7ScummVMViewController.h"
#include "iOS7ScummVMViewController.h"


@implementation iOS7ScummVMViewController
Expand Down
2 changes: 1 addition & 1 deletion backends/platform/ios7/ios7_osys_video.mm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "ios7_video.h"

#include "graphics/conversion.h"
#import "iOS7AppDelegate.h"
#include "iOS7AppDelegate.h"

@interface iOS7AlertHandler : NSObject<UIAlertViewDelegate>
@end
Expand Down
2 changes: 1 addition & 1 deletion backends/platform/ios7/ios7_video.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "ios7_common.h"

#include "common/list.h"
#import "graphics/scaler.h"
#include "graphics/scaler.h"

typedef struct {
GLfloat x, y;
Expand Down
2 changes: 1 addition & 1 deletion backends/platform/ios7/ios7_video.mm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include "graphics/colormasks.h"
#include "common/system.h"
#import "iOS7AppDelegate.h"
#include "iOS7AppDelegate.h"

static int g_needsScreenUpdate = 0;

Expand Down

0 comments on commit 8fc0387

Please sign in to comment.