diff --git a/httplib.h b/httplib.h index 7576cee..521657a 100644 --- a/httplib.h +++ b/httplib.h @@ -1490,7 +1490,7 @@ inline std::string SocketStream::get_remote_addr() const { // Buffer stream implementation inline int BufferStream::read(char* ptr, size_t size) { -#ifdef _WIN32 +#if defined(_MSC_VER) && _MSC_VER < 1900 return static_cast(buffer._Copy_s(ptr, size, size)); #else return static_cast(buffer.copy(ptr, size));