summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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