blob: c7a092911f8e302c0126496a80e47c85dadb38c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- third_party/vulkan-deps/vulkan-validation-layers/src/layers/vk_mem_alloc.h.orig 2023-03-09 06:31:50 UTC
+++ third_party/vulkan-deps/vulkan-validation-layers/src/layers/vk_mem_alloc.h
@@ -2703,7 +2703,7 @@ static void* vma_aligned_alloc(size_t alignment, size_
return memalign(alignment, size);
}
-#elif defined(__APPLE__) || defined(__ANDROID__) || (defined(__linux__) && defined(__GLIBCXX__) && !defined(_GLIBCXX_HAVE_ALIGNED_ALLOC))
+#elif defined(__APPLE__) || defined(__ANDROID__) || (defined(__linux__) && defined(__GLIBCXX__) && !defined(_GLIBCXX_HAVE_ALIGNED_ALLOC)) || defined(__OpenBSD__) || defined(__FreeBSD__)
#define ALIGNED_ALLOC_WITH_POSIX_MEMALIGN
#elif defined(__GNU_LIBRARY__)
# if !defined(__GLIBC_PREREQ) || !__GLIBC_PREREQ(2, 16)
|