summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authoregladil <egladil@openttd.org>2007-12-23 18:08:39 +0000
committeregladil <egladil@openttd.org>2007-12-23 18:08:39 +0000
commit217539ee24c7ce31a2272d3282dcb1cf12b648e4 (patch)
tree4ad50764b4e1705f3a98b322d120b0021a47d237 /src/core
parentfec9cd587c761e3a0c7a57919be5fa167836076f (diff)
downloadopenttd-217539ee24c7ce31a2272d3282dcb1cf12b648e4.tar.xz
(svn r11688) -Fix [FS#1581]: Compilation was broken on OS X again.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/geometry_type.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/geometry_type.hpp b/src/core/geometry_type.hpp
index d6cd225dd..be89acdb7 100644
--- a/src/core/geometry_type.hpp
+++ b/src/core/geometry_type.hpp
@@ -10,6 +10,13 @@
#define Point OTTD_Point
#endif /* __AMIGA__ */
+#if defined(__APPLE__)
+ /* Mac OS X already has both Rect and Point declared */
+ #define Rect OTTD_Rect
+ #define Point OTTD_Point
+#endif /* __APPLE__ */
+
+
struct Point {
int x;
int y;