diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index 54efbdcd7d..adbc2ab340 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -39,8 +39,10 @@ #include #ifdef GDK_WINDOWING_X11 #include +#if GTK_CHECK_VERSION(2,14,0) #include "wx/gtk/private/gtk2-compat.h" // gdk_window_get_screen() #endif +#endif GdkWindow* wxGetTopLevelGDK(); #endif