mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-26 16:34:35 +00:00
Added clang compile support on windows
This commit is contained in:
parent
8317ba9d5e
commit
641a16cc9c
@ -30,6 +30,14 @@
|
|||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#define VK_USE_PLATFORM_WIN32_KHR
|
#define VK_USE_PLATFORM_WIN32_KHR
|
||||||
|
|
||||||
|
#else // #ifdef _WIN32
|
||||||
|
|
||||||
|
#include <vulkan/vulkan.h>
|
||||||
|
|
||||||
|
#endif // #ifdef _WIN32
|
||||||
|
|
||||||
|
#ifdef _MSVC_LANG
|
||||||
|
|
||||||
// Uncomment to test including `vulkan.h` on your own before including VMA.
|
// Uncomment to test including `vulkan.h` on your own before including VMA.
|
||||||
//#include <vulkan/vulkan.h>
|
//#include <vulkan/vulkan.h>
|
||||||
|
|
||||||
@ -62,24 +70,24 @@ include all public interface declarations. Example:
|
|||||||
#pragma warning(disable: 4189) // local variable is initialized but not referenced
|
#pragma warning(disable: 4189) // local variable is initialized but not referenced
|
||||||
#pragma warning(disable: 4324) // structure was padded due to alignment specifier
|
#pragma warning(disable: 4324) // structure was padded due to alignment specifier
|
||||||
|
|
||||||
#include "vk_mem_alloc.h"
|
#endif // #ifdef _MSVC_LANG
|
||||||
|
|
||||||
#pragma warning(pop)
|
|
||||||
|
|
||||||
#else // #ifdef _WIN32
|
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wtautological-compare" // comparison of unsigned expression < 0 is always false
|
#pragma clang diagnostic ignored "-Wtautological-compare" // comparison of unsigned expression < 0 is always false
|
||||||
|
#pragma clang diagnostic ignored "-Wunused-private-field"
|
||||||
|
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||||
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <vulkan/vulkan.h>
|
|
||||||
#include "vk_mem_alloc.h"
|
#include "vk_mem_alloc.h"
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // #ifdef _WIN32
|
#ifdef _MSVC_LANG
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue
Block a user