From a51da75e329df773a01e963c3a27e72cf487138c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 6 Jun 2014 22:41:39 +0300 Subject: fix code style. --- src/net/download.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/net/download.cpp') diff --git a/src/net/download.cpp b/src/net/download.cpp index 03e258b38..069290cde 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -569,12 +569,16 @@ void Download::secureCurl(CURL *const curl) #endif } +#if CURLVERSION_ATLEAST(7, 21, 7) void Download::addHeaders(CURL *const curl) { -#if CURLVERSION_ATLEAST(7, 21, 7) curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, ""); -#endif } +#else +void Download::addHeaders(CURL *const curl A_UNUSED) +{ +} +#endif void Download::prepareForm(curl_httppost **form, const std::string &fileName) { -- cgit v1.2.3-70-g09d2