aboutsummaryrefslogtreecommitdiffstats
path: root/pc/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'pc/config.h')
-rw-r--r--pc/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pc/config.h b/pc/config.h
index 103c6caf..6ebf5975 100644
--- a/pc/config.h
+++ b/pc/config.h
@@ -510,6 +510,10 @@
/* force use of our version of strftime */
#undef USE_INCLUDED_STRFTIME
+/* This is required to compile Gnulib regex code. */
+#ifdef __MINGW32__
+#define _GNU_SOURCE 1
+#endif
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# undef _ALL_SOURCE