From: Kevin Hock Date: Sun, 10 Apr 2005 04:36:47 +0000 (+0000) Subject: kTXNDoFontSubstitutionMask requires OS X 10.3 (undefined symbol on < 10.3) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b7e28620c2625d6a0fdc6914151adea56195d88b?ds=sidebyside kTXNDoFontSubstitutionMask requires OS X 10.3 (undefined symbol on < 10.3) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index 9397ea6acd..baa26ddc54 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -1488,7 +1488,11 @@ void wxMacMLTEControl::SetStringValue( const wxString &str) TXNFrameOptions wxMacMLTEControl::FrameOptionsFromWXStyle( long wxStyle ) { TXNFrameOptions frameOptions = - kTXNDontDrawCaretWhenInactiveMask | kTXNDoFontSubstitutionMask ; + kTXNDontDrawCaretWhenInactiveMask +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3 + | kTXNDoFontSubstitutionMask +#endif + ; if ( ! ( wxStyle & wxTE_NOHIDESEL ) ) frameOptions |= kTXNDontDrawSelectionWhenInactiveMask ;