summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2007-01-15 00:58:18 +0000
committerbjarni <bjarni@openttd.org>2007-01-15 00:58:18 +0000
commit19bdb49e5bc34ab4434f3dc5a28ac7666f19cc33 (patch)
tree639f18265ff6511408ea9dcc83671f80f17b09e7 /src
parentc430f2a54332a70fa6269fbf00281da2cfd5f8f7 (diff)
downloadopenttd-19bdb49e5bc34ab4434f3dc5a28ac7666f19cc33.tar.xz
(svn r8141) -Fix r8128: [OSX] now OSX can compile again.
Note: this is again another not so nice workaround as Objective C fails to include C++ code in the headers We should move to Objective C++ as soon as possible, but such a change is not done overnight and this quick fix will allow OSX to compile until the prober solution is done
Diffstat (limited to 'src')
-rw-r--r--src/video/cocoa_v.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video/cocoa_v.h b/src/video/cocoa_v.h
index c9ec182fa..42e55bcca 100644
--- a/src/video/cocoa_v.h
+++ b/src/video/cocoa_v.h
@@ -4,6 +4,13 @@
#define VIDEO_COCOA_H
#include "../hal.h"
+
+#ifndef __cplusplus
+/* Really ugly workaround
+ * It should be solved right as soon as possible */
+typedef uint32 SpriteID;
+#endif //__cplusplus
+
#include "../gfx.h"
#ifdef __cplusplus