summaryrefslogtreecommitdiff
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
commitfd1c784c3f338aef042eeb9568999a51f0498bb8 (patch)
tree3f2e19234c27f1293c5e77107bd8a0f68e0626d5
parent40d1b4791232e16c6737c36caf87e66cb8c79580 (diff)
downloadgnulib-fd1c784c3f338aef042eeb9568999a51f0498bb8.tar.gz
(alloca): Define to __builtin_alloca if __GNUC__,
to avoid a warning if -Wall.
-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 1c75b390a6..01e0ebdd70 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