diff options
Diffstat (limited to 'gnu/usr.bin/binutils/libiberty/alloca-norm.h')
-rw-r--r-- | gnu/usr.bin/binutils/libiberty/alloca-norm.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/libiberty/alloca-norm.h b/gnu/usr.bin/binutils/libiberty/alloca-norm.h new file mode 100644 index 00000000000..8d91b5ad429 --- /dev/null +++ b/gnu/usr.bin/binutils/libiberty/alloca-norm.h @@ -0,0 +1,16 @@ +/* "Normal" configuration for alloca. */ + +#ifdef __GNUC__ +#define alloca __builtin_alloca +#else /* not __GNUC__ */ +#ifdef sparc +#include <alloca.h> +extern char *__builtin_alloca(); /* Stupid include file doesn't declare it */ +#else +#ifdef __STDC__ +PTR alloca (size_t); +#else +PTR alloca (); /* must agree with functions.def */ +#endif +#endif /* sparc */ +#endif /* not __GNUC__ */ |