X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e7d0063bcacb38a77247312f3e598cf6398e267..9f7948af90ec2e3b907944e7d979f0863910c5c8:/src/gtk/fontdlg.cpp diff --git a/src/gtk/fontdlg.cpp b/src/gtk/fontdlg.cpp index 0c11da99a5..b6117da0b0 100644 --- a/src/gtk/fontdlg.cpp +++ b/src/gtk/fontdlg.cpp @@ -7,10 +7,13 @@ // 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 @@ -151,7 +154,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 ) {