diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2022-11-06 16:52:59 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2022-11-06 17:09:29 +0000 |
commit | c3a7168541d61e3b5e2c2d59215917ccab358683 (patch) | |
tree | 6338b079e496180d809900ce5c8d8b96b071c8c1 | |
parent | 0a630f6d1fd84e90082613d21829f38f9bb1c29f (diff) | |
download | swig-c3a7168541d61e3b5e2c2d59215917ccab358683.tar.gz |
Workaround for incomplete or/and keyword support in VC++
-rw-r--r-- | Examples/test-suite/cpp17_enable_if_t.i | 5 |
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; |