diff --git a/sdk/include/ucrt/malloc.h b/sdk/include/ucrt/malloc.h index c9e0c24cf19..20abe3fe929 100644 --- a/sdk/include/ucrt/malloc.h +++ b/sdk/include/ucrt/malloc.h @@ -50,9 +50,12 @@ typedef struct _heapinfo #define _mm_malloc(a, b) _aligned_malloc(a, b) - +#if defined(__GNUC__) || defined(__clang__) +#define _alloca(x) __builtin_alloca((x)) +#else _Ret_notnull_ _Post_writable_byte_size_(_Size) void* __cdecl _alloca(_In_ size_t _Size); +#endif