From bad6b2d22f511ed2ec0f5052d59c842c78224aab Mon Sep 17 00:00:00 2001 From: Ilya Tsybulsky <60840213+tsilia@users.noreply.github.com> Date: Thu, 2 Jul 2020 00:09:19 +0300 Subject: [PATCH] fix-the-code-won't compile-with-sdl-checks-on (#550) --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 53be1bc..2120dbf 100644 --- a/httplib.h +++ b/httplib.h @@ -3586,7 +3586,7 @@ inline bool BufferStream::is_readable() const { return true; } inline bool BufferStream::is_writable() const { return true; } inline ssize_t BufferStream::read(char *ptr, size_t size) { -#if defined(_MSC_VER) && _MSC_VER < 1900 +#if defined(_MSC_VER) && _MSC_VER <= 1900 auto len_read = buffer._Copy_s(ptr, size, size, position); #else auto len_read = buffer.copy(ptr, size, position);