summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-10-22 08:01:43 +0000
committerJim Meyering <jim@meyering.net>2001-10-22 08:01:43 +0000
commit05c446084e75514e5622d0a5235f0cf86b2480bc (patch)
tree3f4044cefac32258d15dd4c24ae21fe21f995dd2 /src
parente28263f67308abd9adb00a98a007bc56aed0d93c (diff)
downloadcoreutils-05c446084e75514e5622d0a5235f0cf86b2480bc.tar.xz
(alloca): Define to __builtin_alloca if __GNUC__,
to avoid a warning if -Wall.
Diffstat (limited to 'src')
-rw-r--r--src/sys2.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sys2.h b/src/sys2.h
index e6ccc82c4..c29a98139 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -141,7 +141,9 @@
# define RETSIGTYPE void
#endif
-#ifndef __GNUC__
+#if __GNUC__
+# define alloca __builtin_alloca
+#else
# if HAVE_ALLOCA_H
# include <alloca.h>
# else