summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 61fb9db4aa..7d1b3a5985 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -31,6 +31,7 @@
# include <locale.h>
#endif
#ifdef HAVE_LANGINFO_H
+#define __USE_GNU
# include <langinfo.h>
#endif
#include "scanf.h"