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 ////////////////////////////////////////////////////////////////////