summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Examples/test-suite/cpp17_enable_if_t.i5
1 files changed, 5 insertions, 0 deletions
diff --git a/Examples/test-suite/cpp17_enable_if_t.i b/Examples/test-suite/cpp17_enable_if_t.i
index 307237549..b361775d0 100644
--- a/Examples/test-suite/cpp17_enable_if_t.i
+++ b/Examples/test-suite/cpp17_enable_if_t.i
@@ -3,6 +3,11 @@
// test use of enable_if_t but without full %template instantiation, that is no enable_if_t definition is parsed
%inline %{
+#if defined(_MSC_VER) && _MSC_VER < 1920
+#define or ||
+#define and &&
+#endif
+
#include <type_traits>
typedef int node_t;
typedef int position_t;