From 521f5491b2b3e40cadfdd150e21e0c4079aadd1e Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 29 Oct 2009 08:56:26 +0000 Subject: [PATCH] Bugfix when compiling for 10.4 on a 10.5 OSX install --- direct/src/plugin/p3dOsxSplashWindow.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/direct/src/plugin/p3dOsxSplashWindow.cxx b/direct/src/plugin/p3dOsxSplashWindow.cxx index fda48dbc40..faea0b8c24 100644 --- a/direct/src/plugin/p3dOsxSplashWindow.cxx +++ b/direct/src/plugin/p3dOsxSplashWindow.cxx @@ -19,8 +19,12 @@ #include #include -#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 ////////////////////////////////////////////////////////////////////