X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e7d0063bcacb38a77247312f3e598cf6398e267..b77b87881bae2e6306366d79e7fe160334b3d4a2:/src/gtk/fontdlg.cpp?ds=sidebyside 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 ) {