Because the windows stdlib loves defining min and max, breaking otherwise valid code calling std::min/std::max.
@@ -2,6 +2,7 @@ cmake_minimum_required (VERSION 3.0)
### Basic compilation settings
set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+add_definitions (-DNOMINMAX)
configure_file (
common/config.h.in
@@ -8,8 +8,6 @@
#else
# include <winsock2.h>
# include <ws2tcpip.h>
-# undef min
-# undef max
#endif // USE_WINSOCK
#include "PlaintextConnection.h"