]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/fontutil.cpp
check that the version of __sync_sub_and_fetch that returns a value is supported...
[wxWidgets.git] / src / unix / fontutil.cpp
index 7275663fe2565133f3cddd1b9c4a57a72e80a8d2..713510290d2ab769d75c787446d1b32bba0fd829 100644 (file)
@@ -316,9 +316,11 @@ bool wxNativeFontInfo::FromString(const wxString& s)
 
     description = pango_font_description_from_string(wxPANGO_CONV(str));
 
+#if wxUSE_FONTENUM
     // ensure a valid facename is selected
     if (!wxFontEnumerator::IsValidFacename(GetFaceName()))
         SetFaceName(wxNORMAL_FONT->GetFaceName());
+#endif // wxUSE_FONTENUM
 
     return true;
 }