Fix std::min expanding to macro in inout.cpp

There should be a cleaner way to do this, but this works.
This commit is contained in:
Willi Schinmeyer
2024-06-10 09:47:31 +02:00
parent 4f6830c65d
commit d4840d55ad
+3
View File
@@ -324,6 +324,9 @@ void xml_message_push( int flag, const char* characters, size_t length ){
}
else
{
#ifdef min
#undef min
#endif
size_t size = std::min( space, static_cast<size_t>( end - characters ) );
memcpy( mesege + mesege_len, characters, size );
mesege_len += size;