fix prototype of write_data() function used by curl
maybe this works, but I don't want it to suddenly stop working some day just because curl guys made their library more strict.
This commit is contained in:
@@ -360,10 +360,10 @@ const std::basic_string<my_char_t> &Scroller(const string &string, size_t width,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_CURL_CURL_H
|
#ifdef HAVE_CURL_CURL_H
|
||||||
size_t write_data(char *buffer, size_t size, size_t nmemb, string data)
|
size_t write_data(char *buffer, size_t size, size_t nmemb, void *data)
|
||||||
{
|
{
|
||||||
size_t result = size*nmemb;
|
size_t result = size*nmemb;
|
||||||
data.append(buffer, result);
|
static_cast<std::string *>(data)->append(buffer, result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif // HAVE_CURL_CURL_H
|
#endif // HAVE_CURL_CURL_H
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ const Buffer &ShowTag(const std::string &);
|
|||||||
const std::basic_string<my_char_t> &Scroller(const std::string &, size_t, size_t &);
|
const std::basic_string<my_char_t> &Scroller(const std::string &, size_t, size_t &);
|
||||||
|
|
||||||
#ifdef HAVE_CURL_CURL_H
|
#ifdef HAVE_CURL_CURL_H
|
||||||
size_t write_data(char *, size_t, size_t, std::string);
|
size_t write_data(char *, size_t, size_t, void *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user