From d4840d55ad18876237ef14e7e1c567c876c8bb04 Mon Sep 17 00:00:00 2001 From: Willi Schinmeyer Date: Mon, 10 Jun 2024 09:47:31 +0200 Subject: [PATCH] Fix std::min expanding to macro in inout.cpp There should be a cleaner way to do this, but this works. --- tools/quake3/common/inout.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/quake3/common/inout.cpp b/tools/quake3/common/inout.cpp index ae6c6075..344c80df 100644 --- a/tools/quake3/common/inout.cpp +++ b/tools/quake3/common/inout.cpp @@ -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( end - characters ) ); memcpy( mesege + mesege_len, characters, size ); mesege_len += size;