aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-21 23:29:56 +0100
committerMax Kellermann <max@duempel.org>2015-01-21 23:30:00 +0100
commit10972da06030d57429dc2c86c21e37fd0aca88dc (patch)
treeb7f7cc49cb104676351880a64f90c21f54082e06
parenta38f02541d82ce27666e27bf7e3123bff621ca70 (diff)
downloadmpd-10972da06030d57429dc2c86c21e37fd0aca88dc.tar.gz
mpd-10972da06030d57429dc2c86c21e37fd0aca88dc.tar.xz
mpd-10972da06030d57429dc2c86c21e37fd0aca88dc.zip
input/curl: work around format warning on WIN32
-rw-r--r--src/input/plugins/CurlInputPlugin.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx
index a055d0bf6..114f03f3c 100644
--- a/src/input/plugins/CurlInputPlugin.cxx
+++ b/src/input/plugins/CurlInputPlugin.cxx
@@ -649,7 +649,10 @@ CurlInputStream::HeaderReceived(const char *name, std::string &&value)
return;
size_t icy_metaint = ParseUint64(value.c_str());
+#ifndef WIN32
+ /* Windows doesn't know "%z" */
FormatDebug(curl_domain, "icy-metaint=%zu", icy_metaint);
+#endif
if (icy_metaint > 0) {
icy->Enable(icy_metaint);