diff options
Diffstat (limited to 'games/pioneer/files/patch-src_core_macros.h')
-rw-r--r-- | games/pioneer/files/patch-src_core_macros.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/games/pioneer/files/patch-src_core_macros.h b/games/pioneer/files/patch-src_core_macros.h new file mode 100644 index 000000000000..1dcabf3b32a2 --- /dev/null +++ b/games/pioneer/files/patch-src_core_macros.h @@ -0,0 +1,13 @@ +--- src/core/macros.h.orig 2024-03-14 20:05:43 UTC ++++ src/core/macros.h +@@ -45,6 +45,10 @@ char (&COUNTOF_Helper(T (&array)[N]))[N]; + #include <malloc.h> + #define stackalloc(T, n) reinterpret_cast<T *>(_alloca(sizeof(T) * n)) + #else ++#ifdef __FreeBSD__ ++#include <stdlib.h> ++#else + #include <alloca.h> ++#endif + #define stackalloc(T, n) reinterpret_cast<T *>(alloca(sizeof(T) * n)) + #endif |