From: Stefan Csomor Date: Fri, 30 Nov 2007 08:19:44 +0000 (+0000) Subject: weak link test is not optimal, as CoreText is already having some symbols defined... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b3c1d21c7f6a88bd82cee5d3a64fa1bfecd50ed4 weak link test is not optimal, as CoreText is already having some symbols defined under 10.4, replace with fixed system number test git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/font.cpp b/src/mac/carbon/font.cpp index db727b6515..84920cb6c4 100644 --- a/src/mac/carbon/font.cpp +++ b/src/mac/carbon/font.cpp @@ -24,7 +24,7 @@ #include "wx/fontutil.h" #include "wx/graphics.h" -#include "wx/mac/private.h" +#include "wx/mac/uma.h" #ifndef __DARWIN__ #include @@ -235,7 +235,7 @@ void wxFontRefData::MacFindFont() OSStatus status = noErr; #if wxMAC_USE_CORE_TEXT - if ( CTFontCreateWithName != NULL ) + if ( UMAGetSystemVersion() >= 0x1050 ) { if ( m_faceName.empty() && m_family == wxDEFAULT && m_macUIFontType == kCTFontNoFontType ) { @@ -517,7 +517,7 @@ bool wxFont::MacCreateUIFont(wxUint32 ctFontType ) bool wxFont::MacCreateThemeFont(wxUint16 themeFontID) { #if wxMAC_USE_CORE_TEXT - if ( HIThemeGetUIFontType != NULL ) + if ( UMAGetSystemVersion() >= 0x1050) { return MacCreateUIFont(HIThemeGetUIFontType(themeFontID)); }