summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/testpixbuf-save.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/demos/testpixbuf-save.c b/demos/testpixbuf-save.c
index a97fd95858..ce45a8c6c8 100644
--- a/demos/testpixbuf-save.c
+++ b/demos/testpixbuf-save.c
@@ -1,10 +1,15 @@
-#include <config.h>
-/* if building outside GTK, remove /x11 part */
-#include <gdk/x11/gdkx.h>
-#include <gtk/gtk.h>
+#include "config.h"
#include <stdio.h>
+#include <gtk/gtk.h>
+
+#ifdef GDK_WINDOWING_X11
+#include <gdk/x11/gdkx.h>
+#elif defined (GDK_WINDOWING_WIN32)
+#include <gdk/win32/gdkwin32.h>
+#endif
+
void
keypress_check (GtkWidget *widget, GdkEventKey *evt, gpointer data)