Selaa lähdekoodia

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.
Michael Forney 5 vuotta sitten
vanhempi
sitoutus
a56ec7e8e2
1 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0 2
      include/alloca.h

+ 0 - 2
include/alloca.h

@@ -10,9 +10,7 @@ extern "C" {
 
 void *alloca(size_t);
 
-#ifdef __GNUC__
 #define alloca __builtin_alloca
-#endif
 
 #ifdef __cplusplus
 }