aboutsummaryrefslogtreecommitdiff
path: root/graphics/vulkan-loader/files/patch-loader_allocation.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/vulkan-loader/files/patch-loader_allocation.h')
-rw-r--r--graphics/vulkan-loader/files/patch-loader_allocation.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/vulkan-loader/files/patch-loader_allocation.h b/graphics/vulkan-loader/files/patch-loader_allocation.h
new file mode 100644
index 000000000000..b756ec0b7540
--- /dev/null
+++ b/graphics/vulkan-loader/files/patch-loader_allocation.h
@@ -0,0 +1,11 @@
+--- loader/allocation.h.orig 2021-09-15 16:41:50 UTC
++++ loader/allocation.h
+@@ -39,7 +39,7 @@ void loader_device_heap_free(const struct loader_devic
+ void *loader_device_heap_realloc(const struct loader_device *device, void *pMemory, size_t orig_size, size_t size,
+ VkSystemAllocationScope alloc_scope);
+
+-#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__)
++#if defined(__unix__) || defined(__APPLE__) || defined(__Fuchsia__) || defined(__QNXNTO__)
+ #define loader_stack_alloc(size) alloca(size)
+ #elif defined(_WIN32)
+ #define loader_stack_alloc(size) _alloca(size)