X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2696b11cd5b7fe3550f76647e44252d767876ce5..7f47faf4f2fb142f715e3e47ed6f25a002d7a5d2:/src/unix/fontenum.cpp diff --git a/src/unix/fontenum.cpp b/src/unix/fontenum.cpp index a577af0357..cf11e65ba8 100644 --- a/src/unix/fontenum.cpp +++ b/src/unix/fontenum.cpp @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "fontenum.h" -#endif - // for compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -47,8 +43,8 @@ extern GtkWidget *wxGetRootWindow(); #endif -static int -cmp_families (const void *a, const void *b) +extern "C" int wxCMPFUNC_CONV +wxCompareFamilies (const void *a, const void *b) { const char *a_name = pango_font_family_get_name (*(PangoFontFamily **)a); const char *b_name = pango_font_family_get_name (*(PangoFontFamily **)b); @@ -81,7 +77,7 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, wxTheApp->GetPangoContext(), #endif &families, &n_families ); - qsort (families, n_families, sizeof (PangoFontFamily *), cmp_families); + qsort (families, n_families, sizeof (PangoFontFamily *), wxCompareFamilies); for (int i=0; i