diff --git a/gtk/src/gtk_config.cpp b/gtk/src/gtk_config.cpp index 9c0ca4c1..069a36a6 100644 --- a/gtk/src/gtk_config.cpp +++ b/gtk/src/gtk_config.cpp @@ -5,7 +5,9 @@ #include #include #include +#ifdef GDK_WINDOWING_X11 #include +#endif #include #include #include diff --git a/gtk/src/gtk_display.cpp b/gtk/src/gtk_display.cpp index 97511ddd..84168959 100644 --- a/gtk/src/gtk_display.cpp +++ b/gtk/src/gtk_display.cpp @@ -1,5 +1,7 @@ #include +#ifdef GDK_WINDOWING_X11 #include +#endif #include #include "gtk_s9x.h" diff --git a/gtk/src/gtk_preferences.cpp b/gtk/src/gtk_preferences.cpp index 3534f57d..67b47474 100644 --- a/gtk/src/gtk_preferences.cpp +++ b/gtk/src/gtk_preferences.cpp @@ -1,7 +1,9 @@ #include #include #include +#ifdef GDK_WINDOWING_X11 #include +#endif #include "gtk_preferences.h" #include "gtk_config.h" diff --git a/gtk/src/gtk_s9x.cpp b/gtk/src/gtk_s9x.cpp index 42794dcd..7c1a9622 100644 --- a/gtk/src/gtk_s9x.cpp +++ b/gtk/src/gtk_s9x.cpp @@ -2,7 +2,9 @@ #include #include #include +#ifdef GDK_WINDOWING_X11 #include +#endif #include "gtk_s9x.h" #include "gtk_control.h" diff --git a/gtk/src/gtk_s9xwindow.cpp b/gtk/src/gtk_s9xwindow.cpp index eda007b9..0073fe53 100644 --- a/gtk/src/gtk_s9xwindow.cpp +++ b/gtk/src/gtk_s9xwindow.cpp @@ -1,5 +1,7 @@ #include +#ifdef GDK_WINDOWING_X11 #include +#endif #include #include #include