X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..b65ee6fd83eb16afccc00c9ba66cd0d267fe7508:/src/unix/fontenum.cpp?ds=sidebyside diff --git a/src/unix/fontenum.cpp b/src/unix/fontenum.cpp index f1181a4aa7..4ba3e6512d 100644 --- a/src/unix/fontenum.cpp +++ b/src/unix/fontenum.cpp @@ -17,11 +17,13 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "fontenum.h" #endif -#include "wx/defs.h" +// for compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + #include "wx/dynarray.h" #include "wx/string.h" #include "wx/regex.h" @@ -30,6 +32,7 @@ #include "wx/fontmap.h" #include "wx/fontenum.h" #include "wx/fontutil.h" +#include "wx/encinfo.h" // ---------------------------------------------------------------------------- // Pango @@ -57,11 +60,13 @@ cmp_families (const void *a, const void *b) bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, bool fixedWidthOnly) { +#ifndef HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE if ( fixedWidthOnly ) { OnFacename( wxT("monospace") ); } else +#endif { PangoFontFamily **families = NULL; gint n_families = 0; @@ -76,10 +81,14 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, for (int i=0; i