diff --git a/src/core/macros.h b/src/core/macros.h index 32480525af..c1419fec5b 100644 --- a/src/core/macros.h +++ b/src/core/macros.h @@ -45,6 +45,10 @@ char (&COUNTOF_Helper(T (&array)[N]))[N]; #include #define stackalloc(T, n) reinterpret_cast(_alloca(sizeof(T) * n)) #else +#ifdef __FreeBSD__ +#include +#else #include +#endif #define stackalloc(T, n) reinterpret_cast(alloca(sizeof(T) * n)) #endif