From 95e9b1232262000fe798fe63a5d0fd8b794faf2e Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Sun, 26 Jun 2016 16:18:46 +0100 Subject: [PATCH] Prefix the FIELD_DESCRIPTOR macro --- include/pybind11/numpy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index cac19ee72..aacc993db 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -267,7 +267,7 @@ private: static inline char* format_() { static char s[4096]; return s; } }; -#define FIELD_DESCRIPTOR(Type, Field) \ +#define PB11_IMPL_FIELD_DESCRIPTOR(Type, Field) \ ::pybind11::detail::field_descriptor { \ #Field, offsetof(Type, Field), \ ::pybind11::detail::npy_format_descriptor(0)->Field)>::descr() \ @@ -298,7 +298,7 @@ private: #define PYBIND11_DTYPE(Type, ...) \ ::pybind11::detail::npy_format_descriptor::register_dtype \ - ({PB11_IMPL_MAP_LIST(FIELD_DESCRIPTOR, Type, __VA_ARGS__)}) + ({PB11_IMPL_MAP_LIST(PB11_IMPL_FIELD_DESCRIPTOR, Type, __VA_ARGS__)}) template using array_iterator = typename std::add_pointer::type;