aboutsummaryrefslogtreecommitdiffstats
path: root/replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'replace.c')
-rw-r--r--replace.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/replace.c b/replace.c
index 8ff74a87..2b8357a5 100644
--- a/replace.c
+++ b/replace.c
@@ -60,7 +60,14 @@
#endif /* HAVE_STRERROR */
#ifndef HAVE_STRFTIME
+# ifdef __MINGW32__
+/* Need to use underlying_strftime in replacement strftime. */
+# define HAVE_STRFTIME 1
+# endif
#include "missing_d/strftime.c"
+# ifdef __MINGW32__
+# undef HAVE_STRFTIME
+# endif
#endif /* HAVE_STRFTIME */
#ifndef HAVE_STRCHR