mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-19 16:11:23 +00:00
OpenBSD build fix.
As FreeBSD, does not have malloc.h aligned_alloc stricly available since C++17/C11, using the local impl.
This commit is contained in:
parent
8d4c5fb1ff
commit
b0a9d63292
1 changed files with 2 additions and 2 deletions
|
@ -2229,7 +2229,7 @@ remove them if not needed.
|
|||
#include <mutex> // for std::mutex
|
||||
#include <atomic> // for std::atomic
|
||||
|
||||
#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__)
|
||||
#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
||||
#include <malloc.h> // for aligned_alloc()
|
||||
#endif
|
||||
|
||||
|
@ -2238,7 +2238,7 @@ remove them if not needed.
|
|||
#define VMA_NULL nullptr
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__) || defined(__ANDROID__)
|
||||
#if defined(__APPLE__) || defined(__ANDROID__) || defined(__OpenBSD__)
|
||||
#include <cstdlib>
|
||||
void *aligned_alloc(size_t alignment, size_t size)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue