From: Vadim Zeitlin Date: Mon, 12 Nov 2007 21:36:52 +0000 (+0000) Subject: compilation fix for g++ 4 after last commit (why was 3.3 happy with this?) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5e6f2fe9210327222ff2e244d2722a0d3641109a compilation fix for g++ 4 after last commit (why was 3.3 happy with this?) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 1262d32ec1..e0f55864f5 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -40,7 +40,11 @@ // we use normal item but with a special id for the menu title static const int wxGTK_TITLE_ID = -3; -extern "C" static void gtk_menu_clicked_callback(GtkWidget *widget, wxMenu *menu); +// forward declare it as it's used by wxMenuBar too when using Hildon +extern "C" +{ + static void gtk_menu_clicked_callback(GtkWidget *widget, wxMenu *menu); +} //----------------------------------------------------------------------------- // idle system