wayland: include X11 libraries only if it is an available GDK backend

This commit is contained in:
Rémi Calixte 2018-05-09 23:25:09 +02:00 committed by Brandon Wright
parent 55723df0a6
commit c6731024ca
5 changed files with 10 additions and 0 deletions

View File

@ -5,7 +5,9 @@
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xmlwriter.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>

View File

@ -1,5 +1,7 @@
#include <gdk/gdk.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include <sched.h>
#include "gtk_s9x.h"

View File

@ -1,7 +1,9 @@
#include <string>
#include <stdlib.h>
#include <gdk/gdkkeysyms.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include "gtk_preferences.h"
#include "gtk_config.h"

View File

@ -2,7 +2,9 @@
#include <sys/time.h>
#include <signal.h>
#include <gdk/gdk.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include "gtk_s9x.h"
#include "gtk_control.h"

View File

@ -1,5 +1,7 @@
#include <gdk/gdk.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include <gdk/gdkkeysyms.h>
#include <cairo.h>
#include <X11/Xatom.h>