mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 01:33:53 +00:00
fix-the-code-won't compile-with-sdl-checks-on (#550)
This commit is contained in:
parent
3d47a51430
commit
bad6b2d22f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user