common: Fix build on non-Linux systems

Only define HAVE_WAYLAND when GDK_WINDOWING_WAYLAND is defined.

https://bugzilla.gnome.org/show_bug.cgi?id=743266
This commit is contained in:
Bastien Nocera 2015-01-22 15:48:31 +01:00
parent 4ebae051ed
commit 9140b47fe3

View file

@ -3,6 +3,8 @@
#include <gdk/gdkx.h>
#ifdef GDK_WINDOWING_WAYLAND
#define HAVE_WAYLAND 1
static inline gboolean
@ -10,3 +12,5 @@ gnome_settings_is_wayland (void)
{
return !GDK_IS_X11_DISPLAY (gdk_display_get_default ());
}
#endif /* GDK_WINDOWING_WAYLAND */