From ca559b1db66060add5468c4e77f8c891b0a8604a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Feb 2017 12:06:56 +0100 Subject: [PATCH] input/curl: use %lu instead of %llu Fixes a GCC warning because %llu appears to be unsupported by the Windows standard library. --- src/input/plugins/CurlInputPlugin.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index af086b527..ed66e70cd 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -400,7 +400,12 @@ CurlInputStream::SeekInternal(offset_type new_offset) /* send the "Range" header */ if (offset > 0) { +#ifdef WIN32 + // TODO: what can we use on Windows to format 64 bit? + sprintf(range, "%lu-", (long)offset); +#else sprintf(range, "%llu-", (unsigned long long)offset); +#endif request->SetOption(CURLOPT_RANGE, range); } }