From 8d908fadb6b17e66b7b2718d3b89b367d2f835d1 Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 15 Jan 2019 08:08:34 -0500 Subject: [PATCH] Fixed #120 --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));