mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user