summaryrefslogtreecommitdiff
path: root/lib/hard-locale.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-10-22 08:01:22 +0000
committerJim Meyering <jim@meyering.net>2001-10-22 08:01:22 +0000
commite28263f67308abd9adb00a98a007bc56aed0d93c (patch)
tree0acbe381608fce3e9fe82d44e15e2bb16bc61ed0 /lib/hard-locale.c
parentb96c3e6a5d3b06725a664cc5cfb489d98b5b59b4 (diff)
downloadcoreutils-e28263f67308abd9adb00a98a007bc56aed0d93c.tar.xz
(alloca): Define to __builtin_alloca if __GNUC__,
to avoid a warning if -Wall.
Diffstat (limited to 'lib/hard-locale.c')
-rw-r--r--lib/hard-locale.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/hard-locale.c b/lib/hard-locale.c
index 1c75b390a..01e0ebdd7 100644
--- a/lib/hard-locale.c
+++ b/lib/hard-locale.c
@@ -19,7 +19,9 @@
# include <config.h>
#endif
-#ifndef __GNUC__
+#if __GNUC__
+# define alloca __builtin_alloca
+#else
# ifdef HAVE_ALLOCA_H
# include <alloca.h>
# else