From: Stefan Csomor Date: Thu, 4 Mar 2010 08:29:04 +0000 (+0000) Subject: no existing on iphone X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f7d32bb716ba2191d52cbf3ada5b3ff72103dfea no existing on iphone git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/core/colour.cpp b/src/osx/core/colour.cpp index e52d5b7aab..39a4c09661 100644 --- a/src/osx/core/colour.cpp +++ b/src/osx/core/colour.cpp @@ -72,7 +72,7 @@ void wxColour::InitRGBA (ChannelType r, ChannelType g, ChannelType b, ChannelTyp m_alpha = a ; CGColorRef col = 0 ; -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 +#if wxOSX_USE_COCOA_OR_CARBON && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 if ( CGColorCreateGenericRGB != NULL ) col = CGColorCreateGenericRGB( (CGFloat)(r / 255.0), (CGFloat) (g / 255.0), (CGFloat) (b / 255.0), (CGFloat) (a / 255.0) ); else