diff options
Diffstat (limited to 'src/net/CurlHttpClient.cpp')
-rw-r--r-- | src/net/CurlHttpClient.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/CurlHttpClient.cpp b/src/net/CurlHttpClient.cpp index 01115e6..5bd9313 100644 --- a/src/net/CurlHttpClient.cpp +++ b/src/net/CurlHttpClient.cpp @@ -2,6 +2,8 @@ #include "tgbot/net/CurlHttpClient.h" +#include <cstddef> + #include <boost/asio/ssl.hpp> namespace TgBot { @@ -14,7 +16,7 @@ CurlHttpClient::~CurlHttpClient() { curl_easy_cleanup(curlSettings); } -static size_t curlWriteString(char* ptr, size_t size, size_t nmemb, void* userdata) { +static std::size_t curlWriteString(char* ptr, std::size_t size, std::size_t nmemb, void* userdata) { static_cast<std::string *>(userdata)->append(ptr, size * nmemb); return size * nmemb; }; |