From 2253389ded448375773eddbc25d569ff48a6220f Mon Sep 17 00:00:00 2001 From: Mun Gwan-gyeong Date: Sat, 20 Aug 2016 14:46:22 +0900 Subject: demos: GH862 Fix build errors of demos (cube, vulkaninfo) on the wayland only window system Change-Id: I76a36e3aad059356bcb69455702ade1cfec8b924 Signed-off-by: Mun Gwan-gyeong --- demos/cube.c | 2 +- demos/vulkaninfo.c | 2 +- 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 #include #include -#if defined(__linux__) && !defined(ANDROID) +#if defined(VK_USE_PLATFORM_XLIB_KHR) || defined(VK_USE_PLATFORM_XCB_KHR) #include #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 #endif // _WIN32 -#ifdef __linux__ +#if defined(VK_USE_PLATFORM_XLIB_KHR) || defined(VK_USE_PLATFORM_XCB_KHR) #include #endif -- cgit v1.2.3