summaryrefslogtreecommitdiff
path: root/src/os/macosx
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2013-08-05 20:36:17 +0000
committermichi_cc <michi_cc@openttd.org>2013-08-05 20:36:17 +0000
commit8b476de3bfa2864b51435e7fb4988e1550cf1d3a (patch)
treec9fbb557a94c308b87a09b62a404e1f15ec82306 /src/os/macosx
parent8003da77aa5141df149988cc458a27969affc9b1 (diff)
downloadopenttd-8b476de3bfa2864b51435e7fb4988e1550cf1d3a.tar.xz
(svn r25666) -Feature [FS#4760]: [OSX] Pinch gesture support for zooming. (Based on patch by leecbaker)
Diffstat (limited to 'src/os/macosx')
-rw-r--r--src/os/macosx/osx_stdafx.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/os/macosx/osx_stdafx.h b/src/os/macosx/osx_stdafx.h
index 5adbde179..3b3e3fbde 100644
--- a/src/os/macosx/osx_stdafx.h
+++ b/src/os/macosx/osx_stdafx.h
@@ -108,6 +108,14 @@ typedef unsigned int NSUInteger;
#endif /* __LP64__ */
#endif /* NSInteger */
+#ifndef CGFLOAT_DEFINED
+#if __LP64__
+typedef double CGFloat;
+#else
+typedef float CGFloat;
+#endif /* __LP64__ */
+#endif /* CGFLOAT_DEFINED */
+
/* OS X SDK versions >= 10.5 have a non-const iconv. */
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
# define HAVE_NON_CONST_ICONV