put CURL related functions into a separate file

This commit is contained in:
Andrzej Rybczak
2010-08-09 09:31:47 +02:00
parent 8b109d0736
commit d3cb0ea6f6
9 changed files with 131 additions and 66 deletions

View File

@@ -408,12 +408,3 @@ std::basic_string<my_char_t> Scroller(const std::basic_string<my_char_t> &str, s
return result;
}
#ifdef HAVE_CURL_CURL_H
size_t write_data(char *buffer, size_t size, size_t nmemb, void *data)
{
size_t result = size*nmemb;
static_cast<std::string *>(data)->append(buffer, result);
return result;
}
#endif // HAVE_CURL_CURL_H