From a1b71df137e015d44f7e31f7b6d4807253fb7871 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 19 Jun 2019 10:48:36 +0200 Subject: [PATCH] fix issue #1804 (warning about redefined macros) --- include/pybind11/pybind11.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index f1d91c788..0cc5dd523 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -41,16 +41,15 @@ # endif #endif -#if defined(__GNUG__) && !defined(__clang__) - #include -#endif - - #include "attr.h" #include "options.h" #include "detail/class.h" #include "detail/init.h" +#if defined(__GNUG__) && !defined(__clang__) +# include +#endif + NAMESPACE_BEGIN(PYBIND11_NAMESPACE) /// Wraps an arbitrary C++ function/method/lambda function/.. into a callable Python object