From 3a86a69964fb3d53f7672861c4ac7d160ae78342 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Sat, 15 Dec 2001 04:59:11 +0000 Subject: [PATCH] Restore Python <2.2 compatibility (config.h, pyconfig.h). [SVN r12064] --- include/boost/python/detail/wrap_python.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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)