diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index 9a406184bd..d62d0bf3a4 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -34,7 +34,11 @@ #endif #include + #include +#if GTK_CHECK_VERSION(3,0,0) +#include +#endif //----------------------------------------------------------------------------- // data diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index 3467b72318..0f0c5350c7 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -19,7 +19,11 @@ #endif #include "wx/gtk/private.h" + #include +#if GTK_CHECK_VERSION(3,0,0) +#include +#endif //----------------------------------------------------------------------------- // wxGTKRadioButtonInfo diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 85c1dfc1d1..3c32e7dfa6 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -37,9 +37,14 @@ #include "wx/gtk/private.h" #include "wx/gtk/private/win_gtk.h" -#include + #include +#include +#if GTK_CHECK_VERSION(3,0,0) +#include +#endif + #if !GTK_CHECK_VERSION(2,10,0) // GTK+ can reliably detect Meta key state only since 2.10 when // GDK_META_MASK was introduced -- there wasn't any way to detect it