X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e7d0063bcacb38a77247312f3e598cf6398e267..e0c5c96f67eaf13ccbd378616bdf98c8dba01e78:/src/gtk/fontdlg.cpp diff --git a/src/gtk/fontdlg.cpp b/src/gtk/fontdlg.cpp index 0c11da99a5..df4b0eae8a 100644 --- a/src/gtk/fontdlg.cpp +++ b/src/gtk/fontdlg.cpp @@ -7,14 +7,19 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "fontdlg.h" #endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + #include "wx/defs.h" #if wxUSE_FONTDLG +#ifndef __WXGPE__ + #include "wx/fontutil.h" #include "wx/fontdlg.h" #include "wx/utils.h" @@ -151,7 +156,7 @@ bool wxFontDialog::DoCreate(wxWindow *parent) wxFont font = m_fontData.GetInitialFont(); if( font.Ok() ) { - wxNativeFontInfo *info = font.GetNativeFontInfo(); + const wxNativeFontInfo *info = font.GetNativeFontInfo(); if ( info ) { @@ -186,3 +191,5 @@ void wxFontDialog::SetChosenFont(const char *fontname) #endif // wxUSE_FONTDLG +#endif // GPE +