diff options
author | Michael Forney <mforney@mforney.org> | 2019-11-19 01:56:34 -0800 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-01-01 15:07:11 -0500 |
commit | a56ec7e8e27c4e8bb7aa7d612bf382b4bafb132f (patch) | |
tree | aa35d4c2971fa5fa5d74991bdca46c2d12546a29 | |
parent | d3f7df235904439d48db041c7796e5b44be5b8e6 (diff) | |
download | musl-a56ec7e8e27c4e8bb7aa7d612bf382b4bafb132f.tar.gz |
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.
-rw-r--r-- | include/alloca.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/alloca.h b/include/alloca.h index d2e6f1c6..b8d183d1 100644 --- a/include/alloca.h +++ b/include/alloca.h @@ -10,9 +10,7 @@ extern "C" { void *alloca(size_t); -#ifdef __GNUC__ #define alloca __builtin_alloca -#endif #ifdef __cplusplus } |