mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-21 10:29:02 +00:00
windows/time iterate
This commit is contained in:
parent
4ac25bb924
commit
8b296cf342
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue