summaryrefslogtreecommitdiff
path: root/os/macosx
diff options
context:
space:
mode:
Diffstat (limited to 'os/macosx')
-rw-r--r--os/macosx/osx_stdafx.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/os/macosx/osx_stdafx.h b/os/macosx/osx_stdafx.h
new file mode 100644
index 000000000..9567d70ba
--- /dev/null
+++ b/os/macosx/osx_stdafx.h
@@ -0,0 +1,19 @@
+/* $Id$ */
+
+#ifndef MACOS_STDAFX_H
+#define MACOS_STDAFX_H
+
+#include <CoreServices/CoreServices.h>
+// remove the variables that CoreServices defines, but we define ourselves too
+#undef bool
+#undef false
+#undef true
+
+/* Name conflict */
+#define Rect OTTDRect
+#define Point OTTDPoint
+#define GetTime OTTDGetTime
+
+#define SL_ERROR OSX_SL_ERROR
+
+#endif /* MACOS_STDAFX_H */