summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/vulkan/vk_android_native_buffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/vulkan/vk_android_native_buffer.h b/include/vulkan/vk_android_native_buffer.h
index d0ebf81353f..a658b49243d 100644
--- a/include/vulkan/vk_android_native_buffer.h
+++ b/include/vulkan/vk_android_native_buffer.h
@@ -17,8 +17,13 @@
#ifndef __VK_ANDROID_NATIVE_BUFFER_H__
#define __VK_ANDROID_NATIVE_BUFFER_H__
+/* MESA: A hack to avoid #ifdefs in driver code. */
+#ifdef ANDROID
#include <system/window.h>
#include <vulkan/vulkan.h>
+#else
+typedef void *buffer_handle_t;
+#endif
#ifdef __cplusplus
extern "C" {