From: Michael Forney Date: Tue, 19 Nov 2019 09:56:34 +0000 (-0800) Subject: unconditonally define alloca as __builtin_alloca X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a56ec7e8e27c4e8bb7aa7d612bf382b4bafb132f;p=musl 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. --- 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 }