summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-12-24 16:12:52 +0100
committerMax Kellermann <max@musicpd.org>2019-12-24 16:12:52 +0100
commitd27e534a852f9fa934420b1079763c5d2e6e5977 (patch)
tree069a661705406dc3452f019fc17afb3039c1c407
parent6d54928d7c0aac758f3eddfe82169e27109a6255 (diff)
time/ISO8601: fix Windows build failure
Caused by 2bc127bb4336d1de047cca57b07865ed1e53f967
-rw-r--r--src/time/ISO8601.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/time/ISO8601.cxx b/src/time/ISO8601.cxx
index 32527d053..725215ea6 100644
--- a/src/time/ISO8601.cxx
+++ b/src/time/ISO8601.cxx
@@ -58,6 +58,8 @@ FormatISO8601(std::chrono::system_clock::time_point tp)
return FormatISO8601(GmTime(tp));
}
+#ifndef _WIN32
+
static std::pair<unsigned, unsigned>
ParseTimeZoneOffsetRaw(const char *&s)
{
@@ -167,6 +169,8 @@ ParseTimeOfDay(const char *s, struct tm &tm,
return end;
}
+#endif
+
std::pair<std::chrono::system_clock::time_point,
std::chrono::system_clock::duration>
ParseISO8601(const char *s)