diff --git a/include/boost/python/detail/wrap_python.hpp b/include/boost/python/detail/wrap_python.hpp index 1ad88ab6..b6e23b66 100644 --- a/include/boost/python/detail/wrap_python.hpp +++ b/include/boost/python/detail/wrap_python.hpp @@ -72,11 +72,19 @@ typedef int pid_t; # define _MSC_VER 900 # endif -# include +# if PY_MAJOR_VERSION < 2 || PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION <= 2 +# include +# else +# include +# endif # undef hypot // undo the evil #define left by Python. # elif defined(__BORLANDC__) -# include +# if PY_MAJOR_VERSION < 2 || PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION <= 2 +# include +# else +# include +# endif # undef HAVE_HYPOT # define HAVE_HYPOT 1 # elif defined(_MSC_VER)