changeset 5681:0f0d1e5358a2 draft

(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
author bjarni <bjarni@openttd.org>
date Mon, 15 Jan 2007 00:58:18 +0000
parents 4befae5df3f2
children 7a3b79babecb
files src/video/cocoa_v.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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