aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMun Gwan-gyeong <elongbug@gmail.com>2016-08-20 14:46:22 +0900
committerTony Barbour <tony@LunarG.com>2016-08-25 13:30:45 -0600
commit2253389ded448375773eddbc25d569ff48a6220f (patch)
treeffe0a8e3b384810ef2a3ba5f6f57b0a6d41ff786
parent3b4a27c43cc7a85043280c46403fdc3c5d33c9a2 (diff)
downloadusermoji-2253389ded448375773eddbc25d569ff48a6220f.tar.xz
demos: GH862 Fix build errors of demos (cube, vulkaninfo) on the wayland only window system
Change-Id: I76a36e3aad059356bcb69455702ade1cfec8b924 Signed-off-by: Mun Gwan-gyeong <elongbug@gmail.com>
-rw-r--r--demos/cube.c2
-rw-r--r--demos/vulkaninfo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/cube.c b/demos/cube.c
index 5c4a6dc7..9542dadb 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -29,7 +29,7 @@
#include <stdbool.h>
#include <assert.h>
#include <signal.h>
-#if defined(__linux__) && !defined(ANDROID)
+#if defined(VK_USE_PLATFORM_XLIB_KHR) || defined(VK_USE_PLATFORM_XCB_KHR)
#include <X11/Xutil.h>
#endif
diff --git a/demos/vulkaninfo.c b/demos/vulkaninfo.c
index 5f1b129c..324720c6 100644
--- a/demos/vulkaninfo.c
+++ b/demos/vulkaninfo.c
@@ -32,7 +32,7 @@
#include <io.h>
#endif // _WIN32
-#ifdef __linux__
+#if defined(VK_USE_PLATFORM_XLIB_KHR) || defined(VK_USE_PLATFORM_XCB_KHR)
#include <X11/Xutil.h>
#endif