X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/385e8575dd1f9219fb0e3f7fa26ffe4c24d2fdbb..74a8f67d96591cec101def2a7d47c64072aff7fd:/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__)