mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-06 23:02:10 +03:00
unconditonally define alloca as __builtin_alloca
This enables alternative compilers, which may not define __GNUC__, to implement alloca, which is still fairly widely used. This is similar to how stdarg.h already works in musl; compilers must implement __builtin_va_arg, there is no fallback definition.
This commit is contained in:
parent
d3f7df2359
commit
a56ec7e8e2
@ -10,9 +10,7 @@ extern "C" {
|
|||||||
|
|
||||||
void *alloca(size_t);
|
void *alloca(size_t);
|
||||||
|
|
||||||
#ifdef __GNUC__
|
|
||||||
#define alloca __builtin_alloca
|
#define alloca __builtin_alloca
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user