From 8b296cf342a5c2e697e14924729c0b9fcb6d4e76 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Fri, 7 Apr 2017 23:45:08 -0400 Subject: [PATCH] windows/time iterate --- c/lib/mlr_arch.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/c/lib/mlr_arch.c b/c/lib/mlr_arch.c index ee50a490d..63993472f 100644 --- a/c/lib/mlr_arch.c +++ b/c/lib/mlr_arch.c @@ -6,6 +6,9 @@ #include "mlrutil.h" #include "netbsd_strptime.h" +// For some Linux distros, in spite of including time.h: +char *strptime(const char *s, const char *format, struct tm *ptm); + // ---------------------------------------------------------------- int mlr_arch_setenv(const char *name, const char *value) { #ifdef MLR_ON_MSYS2 @@ -29,8 +32,8 @@ int mlr_arch_unsetenv(const char *name) { // ---------------------------------------------------------------- char *mlr_arch_strptime(const char *s, const char *format, struct tm *ptm) { #ifdef MLR_ON_MSYS2 - return strptime(*s, format, ptm); -#else return netbsd_strptime(s, format, ptm); +#else + return strptime(s, format, ptm); #endif }