From: Vadim Zeitlin Date: Sun, 18 Nov 2007 20:42:39 +0000 (+0000) Subject: wxGTK compilation fix after wxInfoMessageBox change (need to include gtk.h) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6ed3db087fe3ea8b39d34090de0426eec091eced wxGTK compilation fix after wxInfoMessageBox change (need to include gtk.h) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index c65b29d48a..f3893507e5 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -99,6 +99,10 @@ #include // needed for SHELLEXECUTEINFO #endif +#if wxUSE_GUI && defined(__WXGTK__) + #include // for GTK_XXX_VERSION constants +#endif + #if wxUSE_BASE // ---------------------------------------------------------------------------- @@ -1392,7 +1396,10 @@ void wxInfoMessageBox(wxWindow* parent) wxPlatformInfo::Get().GetToolkitMajorVersion(), wxPlatformInfo::Get().GetToolkitMinorVersion(), #ifdef __WXGTK__ - wxString::Format(_T("\nThe compile-time GTK+ version is %d.%d.%d."), GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION).c_str() + wxString::Format("\nThe compile-time GTK+ version is %d.%d.%d.", + GTK_MAJOR_VERSION, + GTK_MINOR_VERSION, + GTK_MICRO_VERSION).c_str() #else wxEmptyString #endif