mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 06:25:50 +00:00
Don't define Vulkan types if vulkan.h has already been included
This commit is contained in:
parent
1f2e151b44
commit
24a0d3bc6d
|
@ -37,6 +37,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Avoid including vulkan.h */
|
/* Avoid including vulkan.h */
|
||||||
|
#ifndef VULKAN_H_
|
||||||
#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object;
|
#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object;
|
||||||
|
|
||||||
#if defined(__LP64__) || defined(_WIN64) || defined(__x86_64__) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
|
#if defined(__LP64__) || defined(_WIN64) || defined(__x86_64__) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
|
||||||
|
@ -48,6 +49,8 @@ extern "C" {
|
||||||
VK_DEFINE_HANDLE(VkInstance)
|
VK_DEFINE_HANDLE(VkInstance)
|
||||||
VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR)
|
VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkSurfaceKHR)
|
||||||
|
|
||||||
|
#endif /* !VULKAN_H_ */
|
||||||
|
|
||||||
typedef VkInstance SDL_vulkanInstance;
|
typedef VkInstance SDL_vulkanInstance;
|
||||||
typedef VkSurfaceKHR SDL_vulkanSurface; /* for compatibility with Tizen */
|
typedef VkSurfaceKHR SDL_vulkanSurface; /* for compatibility with Tizen */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue