allow building for MSVC clang-cl and some BSD systems

This commit is contained in:
Sendan
2025-10-24 14:47:43 -04:00
parent 196b8dca0a
commit 3f48309ef1

View File

@@ -11,6 +11,9 @@
#if defined(C4_MSVC) || defined(C4_MINGW)
#include <malloc.h>
#elif (defined(__clang__) && defined(_MSC_VER)) || \
defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
#include <stdlib.h>
#else
#include <alloca.h>
#endif