Skip to content

Commit 39f4490

Browse files
Revert "Unbreak on BSDs"
1 parent 606cb27 commit 39f4490

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vk_mem_alloc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,6 +2229,10 @@ remove them if not needed.
22292229
#include <mutex> // for std::mutex
22302230
#include <atomic> // for std::atomic
22312231

2232+
#if !defined(_WIN32) && !defined(__APPLE__)
2233+
#include <malloc.h> // for aligned_alloc()
2234+
#endif
2235+
22322236
#ifndef VMA_NULL
22332237
// Value used as null pointer. Define it to e.g.: nullptr, NULL, 0, (void*)0.
22342238
#define VMA_NULL nullptr

0 commit comments

Comments
 (0)