summaryrefslogtreecommitdiff
path: root/tests/autotestkeywords.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/autotestkeywords.cc')
-rw-r--r--tests/autotestkeywords.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/autotestkeywords.cc b/tests/autotestkeywords.cc
index 37984b2ef..73f20c3e1 100644
--- a/tests/autotestkeywords.cc
+++ b/tests/autotestkeywords.cc
@@ -1,17 +1,14 @@
#include <gtk/gtk.h>
+#ifdef GDK_WINDOWING_DIRECTFB
#define gdk_display gdk_display_directfb
#include <gdk/directfb/gdkdirectfb.h>
#undef gdk_display
#undef GDK_DISPLAY
#undef GDK_ROOT_WINDOW
+#endif
-#define gdk_display gdk_display_linuxfb
-#include <gdk/linux-fb/gdkfb.h>
-#undef gdk_display
-#undef GDK_DISPLAY
-#undef GDK_ROOT_WINDOW
-
+#ifdef GDK_WINDOWING_QUARTZ
#if HAVE_OBJC
#define gdk_display gdk_display_quartz
#include <gdk/quartz/gdkquartz.h>
@@ -19,17 +16,22 @@
#undef GDK_DISPLAY
#undef GDK_ROOT_WINDOW
#endif
+#endif
+#ifdef GDK_WINDOWING_WIN32
#define gdk_display gdk_display_win32
#include <gdk/win32/gdkwin32.h>
#undef gdk_display
#undef GDK_DISPLAY
#undef GDK_ROOT_WINDOW
+#endif
+#ifdef GDK_WINDOWING_X11
#define gdk_display gdk_display_x11
#include <gdk/x11/gdkx.h>
#undef gdk_display
#undef GDK_DISPLAY
#undef GDK_ROOT_WINDOW
+#endif
int main() { return 0; }