From 89ae8a5ee408e908c53ecd6791040f7f90184e68 Mon Sep 17 00:00:00 2001 From: Tao He Date: Wed, 17 Aug 2022 11:34:28 +0800 Subject: [PATCH] Define "NOMINMAX" to ensure `` works. See also: https://stackoverflow.com/questions/2561368/illegal-token-on-right-side-of Resolves #149. Signed-off-by: Tao He --- catch.hpp | 5 +++++ src/Client.cpp | 5 +++++ src/SyncClient.cpp | 5 +++++ 3 files changed, 15 insertions(+) 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