mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 06:51:22 +00:00
[UCRT] Fix definition of _alloca for GCC/Clang
This commit is contained in:
parent
61175644d0
commit
9db517f324
1 changed files with 4 additions and 1 deletions
|
@ -50,9 +50,12 @@ typedef struct _heapinfo
|
||||||
#define _mm_malloc(a, b) _aligned_malloc(a, b)
|
#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)
|
_Ret_notnull_ _Post_writable_byte_size_(_Size)
|
||||||
void* __cdecl _alloca(_In_ size_t _Size);
|
void* __cdecl _alloca(_In_ size_t _Size);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue