aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-19 21:44:37 +0100
committerJohannes Schickel2012-02-19 21:44:37 +0100
commit13358c541df46b03d3c25a9fa7e4615c64424517 (patch)
tree847d33aab03a76b66cadd416ce8bff0b5fe60bec
parent3d0316ccd215cbb1530f665ff195554e46559efe (diff)
downloadscummvm-rg350-13358c541df46b03d3c25a9fa7e4615c64424517.tar.gz
scummvm-rg350-13358c541df46b03d3c25a9fa7e4615c64424517.tar.bz2
scummvm-rg350-13358c541df46b03d3c25a9fa7e4615c64424517.zip
IPHONE: Add include guards.
-rw-r--r--backends/platform/iphone/iphone_common.h5
-rw-r--r--backends/platform/iphone/iphone_keyboard.h5
-rw-r--r--backends/platform/iphone/iphone_video.h8
-rw-r--r--backends/platform/iphone/osys_main.h5
4 files changed, 18 insertions, 5 deletions
diff --git a/backends/platform/iphone/iphone_common.h b/backends/platform/iphone/iphone_common.h
index 9bf559860e..d6d3a3dc6f 100644
--- a/backends/platform/iphone/iphone_common.h
+++ b/backends/platform/iphone/iphone_common.h
@@ -20,6 +20,9 @@
*
*/
+#ifndef BACKENDS_PLATFORM_IPHONE_IPHONE_COMMON_H
+#define BACKENDS_PLATFORM_IPHONE_IPHONE_COMMON_H
+
enum InputEvent {
kInputMouseDown,
kInputMouseUp,
@@ -79,3 +82,5 @@ uint getSizeNextPOT(uint size);
#ifdef __cplusplus
}
#endif
+
+#endif
diff --git a/backends/platform/iphone/iphone_keyboard.h b/backends/platform/iphone/iphone_keyboard.h
index 6d64f90ffd..b13ac35616 100644
--- a/backends/platform/iphone/iphone_keyboard.h
+++ b/backends/platform/iphone/iphone_keyboard.h
@@ -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>
@@ -34,3 +37,5 @@
- (void)handleKeyPress:(unichar)c;
@end
+
+#endif
diff --git a/backends/platform/iphone/iphone_video.h b/backends/platform/iphone/iphone_video.h
index 21593b2c3d..a7a83e2a99 100644
--- a/backends/platform/iphone/iphone_video.h
+++ b/backends/platform/iphone/iphone_video.h
@@ -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>
@@ -80,6 +80,4 @@
@end
-
-
-#endif /* _IPHONE_VIDEO__H */
+#endif
diff --git a/backends/platform/iphone/osys_main.h b/backends/platform/iphone/osys_main.h
index 04b82ab5e4..993c1aab4c 100644
--- a/backends/platform/iphone/osys_main.h
+++ b/backends/platform/iphone/osys_main.h
@@ -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"
@@ -208,3 +211,5 @@ protected:
bool handleEvent_mouseDragged(Common::Event &event, int x, int y);
bool handleEvent_mouseSecondDragged(Common::Event &event, int x, int y);
};
+
+#endif