X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/385e8575dd1f9219fb0e3f7fa26ffe4c24d2fdbb..42604e44bec70f5a26cabb26653f7ca1490fb04e:/src/common/popupcmn.cpp diff --git a/src/common/popupcmn.cpp b/src/common/popupcmn.cpp index 9bad6ac633..f4b812330e 100644 --- a/src/common/popupcmn.cpp +++ b/src/common/popupcmn.cpp @@ -44,7 +44,11 @@ #ifdef __WXGTK__ #include - #include "wx/gtk/private/gtk2-compat.h" + #if GTK_CHECK_VERSION(2,0,0) + #include "wx/gtk/private/gtk2-compat.h" + #else + #define gtk_widget_get_window(x) x->window + #endif #elif defined(__WXMSW__) #include "wx/msw/private.h" #elif defined(__WXX11__)