summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-02-04 03:52:16 +0000
committerJim Meyering <jim@meyering.net>1997-02-04 03:52:16 +0000
commitc1e48065024e48de222354ff706a9bacec23d8a0 (patch)
tree7cde36d7bbddcefb2bb223601996dbe58f1139ed /src/system.h
parent84ed9c3db99a75fa5c7542e99b6ecbaca083fa47 (diff)
downloadcoreutils-c1e48065024e48de222354ff706a9bacec23d8a0.tar.xz
[__GNUC__]: Don't define alloca to __builtin_alloca.
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/system.h b/src/system.h
index 552d4c18e..468e0e744 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 <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