diff --git a/catch.hpp b/catch.hpp index 36eaeb2..6cb9d8f 100644 --- a/catch.hpp +++ b/catch.hpp @@ -1,3 +1,8 @@ +#if defined(_WIN32) +// see also: https://stackoverflow.com/questions/2561368/illegal-token-on-right-side-of +#define NOMINMAX +#endif + /* * Catch v2.13.6 * Generated: 2021-04-16 18:23:38.044268 diff --git a/src/Client.cpp b/src/Client.cpp index 001fd3f..4a3f28f 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -1,3 +1,8 @@ +#if defined(_WIN32) +// see also: https://stackoverflow.com/questions/2561368/illegal-token-on-right-side-of +#define NOMINMAX +#endif + #include #include #include diff --git a/src/SyncClient.cpp b/src/SyncClient.cpp index a09aeb3..d8f193f 100644 --- a/src/SyncClient.cpp +++ b/src/SyncClient.cpp @@ -1,3 +1,8 @@ +#if defined(_WIN32) +// see also: https://stackoverflow.com/questions/2561368/illegal-token-on-right-side-of +#define NOMINMAX +#endif + #include #include #include