]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
[__GNUC__]: Don't define alloca to __builtin_alloca.
authorJim Meyering <jim@meyering.net>
Tue, 4 Feb 1997 03:52:16 +0000 (03:52 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 4 Feb 1997 03:52:16 +0000 (03:52 +0000)
src/system.h

index 552d4c18e954c4eb28bc9ceaf5ee94a234002421..468e0e744934453c943169cec84ddf2688c4e515 100644 (file)
@@ -285,15 +285,16 @@ char *getenv ();
 #define RETSIGTYPE void
 #endif
 
-#ifdef __GNUC__
-# undef alloca
-#else
+#ifndef __GNUC__
 # ifdef HAVE_ALLOCA_H
 #  include <alloca.h>
 # 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