Browse Source

Bugfix when compiling for 10.4 on a 10.5 OSX install

rdb 16 years ago
parent
commit
521f5491b2
1 changed files with 6 additions and 2 deletions
  1. 6 2
      direct/src/plugin/p3dOsxSplashWindow.cxx

+ 6 - 2
direct/src/plugin/p3dOsxSplashWindow.cxx

@@ -19,8 +19,12 @@
 #include <Carbon/Carbon.h>
 #include <ApplicationServices/ApplicationServices.h>
 
-#ifndef MAC_OS_X_VERSION_10_5
-  typedef float CGFloat;
+#ifndef CGFLOAT_DEFINED
+  #if defined(__LP64__) && __LP64__
+    typedef double CGFloat;
+  #else
+    typedef float CGFloat;
+  #endif
 #endif
 
 ////////////////////////////////////////////////////////////////////