windows/time iterate

This commit is contained in:
John Kerl 2017-04-07 23:45:08 -04:00
parent 4ac25bb924
commit 8b296cf342

View file

@ -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
}