Skip to content

Commit

Permalink
IPHONE: Add include guards.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Feb 19, 2012
1 parent 3d0316c commit 13358c5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
5 changes: 5 additions & 0 deletions backends/platform/iphone/iphone_common.h
Expand Up @@ -20,6 +20,9 @@
*
*/

#ifndef BACKENDS_PLATFORM_IPHONE_IPHONE_COMMON_H
#define BACKENDS_PLATFORM_IPHONE_IPHONE_COMMON_H

enum InputEvent {
kInputMouseDown,
kInputMouseUp,
Expand Down Expand Up @@ -79,3 +82,5 @@ uint getSizeNextPOT(uint size);
#ifdef __cplusplus
}
#endif

#endif
5 changes: 5 additions & 0 deletions backends/platform/iphone/iphone_keyboard.h
Expand Up @@ -20,6 +20,9 @@
*
*/

#ifndef BACKENDS_PLATFORM_IPHONE_IPHONE_KEYBOARD_H
#define BACKENDS_PLATFORM_IPHONE_IPHONE_KEYBOARD_H

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

Expand All @@ -34,3 +37,5 @@
- (void)handleKeyPress:(unichar)c;

@end

#endif
8 changes: 3 additions & 5 deletions backends/platform/iphone/iphone_video.h
Expand Up @@ -20,8 +20,8 @@
*
*/

#ifndef _IPHONE_VIDEO__H
#define _IPHONE_VIDEO__H
#ifndef BACKENDS_PLATFORM_IPHONE_IPHONE_VIDEO_H
#define BACKENDS_PLATFORM_IPHONE_IPHONE_VIDEO_H

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
Expand Down Expand Up @@ -80,6 +80,4 @@

@end



#endif /* _IPHONE_VIDEO__H */
#endif
5 changes: 5 additions & 0 deletions backends/platform/iphone/osys_main.h
Expand Up @@ -20,6 +20,9 @@
*
*/

#ifndef BACKENDS_PLATFORM_IPHONE_OSYS_MAIN_H
#define BACKENDS_PLATFORM_IPHONE_OSYS_MAIN_H

#include "graphics/surface.h"
#include "iphone_common.h"
#include "backends/base-backend.h"
Expand Down Expand Up @@ -208,3 +211,5 @@ class OSystem_IPHONE : public EventsBaseBackend, public PaletteManager {
bool handleEvent_mouseDragged(Common::Event &event, int x, int y);
bool handleEvent_mouseSecondDragged(Common::Event &event, int x, int y);
};

#endif

0 comments on commit 13358c5

Please sign in to comment.