demos: GH862 Fix build errors of demos (cube, vulkaninfo) on the wayland only window...
authorMun Gwan-gyeong <elongbug@gmail.com>
Sat, 20 Aug 2016 05:46:22 +0000 (14:46 +0900)
committerTony Barbour <tony@LunarG.com>
Thu, 25 Aug 2016 19:30:45 +0000 (13:30 -0600)
Change-Id: I76a36e3aad059356bcb69455702ade1cfec8b924
Signed-off-by: Mun Gwan-gyeong <elongbug@gmail.com>
demos/cube.c
demos/vulkaninfo.c

index 5c4a6dc..9542dad 100644 (file)
@@ -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
 
index 5f1b129..324720c 100644 (file)
@@ -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