From eb0c1fd44c1cd432296199a027c2e77493212bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Wed, 16 May 2018 10:44:04 +0300 Subject: [PATCH] headers: fix compilation error on android with vk_icd.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change allow us to refer to ANativeWindow from C code, fixes following compilation error seen with clang 3.8.27580 (Android O prebuilts). vk_icd.h:116:5: error: must use 'struct' tag to refer to type 'ANativeWindow' Signed-off-by: Tapani Pälli --- include/vulkan/vk_icd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vulkan/vk_icd.h b/include/vulkan/vk_icd.h index 35956a3..b935fa1 100644 --- a/include/vulkan/vk_icd.h +++ b/include/vulkan/vk_icd.h @@ -138,7 +138,7 @@ typedef struct { #ifdef VK_USE_PLATFORM_ANDROID_KHR typedef struct { VkIcdSurfaceBase base; - ANativeWindow *window; + struct ANativeWindow *window; } VkIcdSurfaceAndroid; #endif // VK_USE_PLATFORM_ANDROID_KHR