Browse Source

fix-the-code-won't compile-with-sdl-checks-on (#550)

Ilya Tsybulsky 5 years ago
parent
commit
bad6b2d22f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      httplib.h

+ 1 - 1
httplib.h

@@ -3586,7 +3586,7 @@ inline bool BufferStream::is_readable() const { return true; }
 inline bool BufferStream::is_writable() const { return true; }
 inline bool BufferStream::is_writable() const { return true; }
 
 
 inline ssize_t BufferStream::read(char *ptr, size_t size) {
 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);
   auto len_read = buffer._Copy_s(ptr, size, size, position);
 #else
 #else
   auto len_read = buffer.copy(ptr, size, position);
   auto len_read = buffer.copy(ptr, size, position);