|
24 | 24 | # define MSGPACK_PP_CONFIG_EDG() 0x0020
|
25 | 25 | # define MSGPACK_PP_CONFIG_DMC() 0x0040
|
26 | 26 | #
|
| 27 | +# if !defined(__clang__) && (!defined(_MSVC_TRADITIONAL) || _MSVC_TRADITIONAL) |
| 28 | +# define MSGPACK_TRADITIONAL_MSVC 1 |
| 29 | +# else |
| 30 | +# define MSGPACK_TRADITIONAL_MSVC 0 |
| 31 | +# endif |
| 32 | +# |
27 | 33 | # ifndef MSGPACK_PP_CONFIG_FLAGS
|
28 | 34 | # if defined(__GCCXML__) || defined(__WAVE__) || defined(__MWERKS__) && __MWERKS__ >= 0x3200
|
29 | 35 | # define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_STRICT())
|
30 | 36 | # elif defined(__EDG__) || defined(__EDG_VERSION__)
|
31 |
| -# if defined(_MSC_VER) && !defined(__clang__) && (defined(__INTELLISENSE__) || __EDG_VERSION__ >= 308) |
| 37 | +# if defined(_MSC_VER) && MSGPACK_TRADITIONAL_MSVC && (defined(__INTELLISENSE__) || __EDG_VERSION__ >= 308) |
32 | 38 | # define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_MSVC())
|
33 | 39 | # else
|
34 | 40 | # define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_EDG() | MSGPACK_PP_CONFIG_STRICT())
|
35 | 41 | # endif
|
36 |
| -# elif defined(_MSC_VER) && defined(__clang__) |
| 42 | +# elif defined(_MSC_VER) && !MSGPACK_TRADITIONAL_MSVC |
37 | 43 | # define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_STRICT())
|
38 | 44 | # elif defined(__MWERKS__)
|
39 | 45 | # define MSGPACK_PP_CONFIG_FLAGS() (MSGPACK_PP_CONFIG_MWCC())
|
|
75 | 81 | # define MSGPACK_PP_VARIADICS 0
|
76 | 82 | # elif defined(__CUDACC__)
|
77 | 83 | # define MSGPACK_PP_VARIADICS 1
|
78 |
| -# elif defined(_MSC_VER) && defined(__clang__) |
| 84 | +# elif defined(_MSC_VER) && !MSGPACK_TRADITIONAL_MSVC |
79 | 85 | # define MSGPACK_PP_VARIADICS 1
|
80 | 86 | # /* VC++ (C/C++) and Intel C++ Compiler >= 17.0 with MSVC */
|
81 | 87 | # elif defined _MSC_VER && _MSC_VER >= 1400 && (!defined __EDG__ || defined(__INTELLISENSE__) || defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1700)
|
|
94 | 100 | # elif !MSGPACK_PP_VARIADICS + 1 < 2
|
95 | 101 | # undef MSGPACK_PP_VARIADICS
|
96 | 102 | # define MSGPACK_PP_VARIADICS 1
|
97 |
| -# if defined _MSC_VER && _MSC_VER >= 1400 && !defined(__clang__) && (defined(__INTELLISENSE__) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1700) || !(defined __EDG__ || defined __GCCXML__ || defined __CUDACC__ || defined __PATHSCALE__ || defined __DMC__ || defined __CODEGEARC__ || defined __BORLANDC__ || defined __MWERKS__ || defined __SUNPRO_CC || defined __HP_aCC || defined __MRC__ || defined __SC__ || defined __IBMCPP__ || defined __PGI)) |
| 103 | +# if defined _MSC_VER && _MSC_VER >= 1400 && MSGPACK_TRADITIONAL_MSVC && (defined(__INTELLISENSE__) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1700) || !(defined __EDG__ || defined __GCCXML__ || defined __CUDACC__ || defined __PATHSCALE__ || defined __DMC__ || defined __CODEGEARC__ || defined __BORLANDC__ || defined __MWERKS__ || defined __SUNPRO_CC || defined __HP_aCC || defined __MRC__ || defined __SC__ || defined __IBMCPP__ || defined __PGI)) |
98 | 104 | # undef MSGPACK_PP_VARIADICS_MSVC
|
99 | 105 | # define MSGPACK_PP_VARIADICS_MSVC 1
|
100 | 106 | # endif
|
|
0 commit comments