mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Fix compilation with clang-cl
This commit is contained in:
parent
0dfffcf257
commit
03f9e4a8ec
@ -1218,7 +1218,7 @@ private:
|
||||
#define PYBIND11_MAP_NEXT0(test, next, ...) next PYBIND11_MAP_OUT
|
||||
#define PYBIND11_MAP_NEXT1(test, next) PYBIND11_MAP_NEXT0 (test, next, 0)
|
||||
#define PYBIND11_MAP_NEXT(test, next) PYBIND11_MAP_NEXT1 (PYBIND11_MAP_GET_END test, next)
|
||||
#ifdef _MSC_VER // MSVC is not as eager to expand macros, hence this workaround
|
||||
#if defined(_MSC_VER) && !defined(__clang__) // MSVC is not as eager to expand macros, hence this workaround
|
||||
#define PYBIND11_MAP_LIST_NEXT1(test, next) \
|
||||
PYBIND11_EVAL0 (PYBIND11_MAP_NEXT0 (test, PYBIND11_MAP_COMMA next, 0))
|
||||
#else
|
||||
@ -1240,7 +1240,7 @@ private:
|
||||
(::std::vector<::pybind11::detail::field_descriptor> \
|
||||
{PYBIND11_MAP_LIST (PYBIND11_FIELD_DESCRIPTOR, Type, __VA_ARGS__)})
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
#define PYBIND11_MAP2_LIST_NEXT1(test, next) \
|
||||
PYBIND11_EVAL0 (PYBIND11_MAP_NEXT0 (test, PYBIND11_MAP_COMMA next, 0))
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user