time/ISO8601: fix Windows build failure

Caused by 2bc127bb43
This commit is contained in:
Max Kellermann 2019-12-24 16:12:52 +01:00
parent 6d54928d7c
commit d27e534a85

View File

@ -58,6 +58,8 @@ FormatISO8601(std::chrono::system_clock::time_point tp)
return FormatISO8601(GmTime(tp)); return FormatISO8601(GmTime(tp));
} }
#ifndef _WIN32
static std::pair<unsigned, unsigned> static std::pair<unsigned, unsigned>
ParseTimeZoneOffsetRaw(const char *&s) ParseTimeZoneOffsetRaw(const char *&s)
{ {
@ -167,6 +169,8 @@ ParseTimeOfDay(const char *s, struct tm &tm,
return end; return end;
} }
#endif
std::pair<std::chrono::system_clock::time_point, std::pair<std::chrono::system_clock::time_point,
std::chrono::system_clock::duration> std::chrono::system_clock::duration>
ParseISO8601(const char *s) ParseISO8601(const char *s)