From: Jim Meyering Date: Tue, 4 Feb 1997 03:52:16 +0000 (+0000) Subject: [__GNUC__]: Don't define alloca to __builtin_alloca. X-Git-Tag: SH-UTILS-1_16a~264 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1e48065024e48de222354ff706a9bacec23d8a0;p=thirdparty%2Fcoreutils.git [__GNUC__]: Don't define alloca to __builtin_alloca. --- diff --git a/src/system.h b/src/system.h index 552d4c18e9..468e0e7449 100644 --- a/src/system.h +++ b/src/system.h @@ -285,15 +285,16 @@ char *getenv (); #define RETSIGTYPE void #endif -#ifdef __GNUC__ -# undef alloca -#else +#ifndef __GNUC__ # ifdef HAVE_ALLOCA_H # include # else -# ifndef _AIX -/* AIX alloca decl has to be the first thing in the file, bletch! */ +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca char *alloca (); +# endif # endif # endif #endif