2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 06:42:27 +00:00

always include <pyconfig.h> first

[SVN r24852]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2004-09-01 15:43:52 +00:00
parent dec9c6d96e
commit 3918395715
2 changed files with 8 additions and 11 deletions

View File

@@ -9,8 +9,11 @@
// headers (so it can get control over some awful macros).
// Unfortunately, Boost.Python needs to #include <limits.h> first, at
// least... but this gets us as close as possible.
# include <pyconfig.h>
# if defined(_SGI_COMPILER_VERSION) && _SGI_COMPILER_VERSION == 741
# include <complex>
# undef _POSIX_C_SOURCE
# undef _XOPEN_SOURCE
# endif
# include <boost/python/detail/wrap_python.hpp>
# include <boost/python/detail/config.hpp>

View File

@@ -40,6 +40,10 @@
//
#include <patchlevel.h>
#if PY_MAJOR_VERSION<2 || PY_MAJOR_VERSION==2 && PY_MINOR_VERSION<2
#error Python 2.2 or higher is required for this version of Boost.Python.
#endif
#ifdef _DEBUG
# ifndef BOOST_DEBUG_PYTHON
# undef _DEBUG // Don't let Python force the debug library just because we're debugging.
@@ -96,19 +100,9 @@ typedef int pid_t;
# define _MSC_VER 900
# endif
# if PY_MAJOR_VERSION < 2 || PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 2
# include <config.h>
# else
# include <pyconfig.h>
# endif
# undef hypot // undo the evil #define left by Python.
# elif defined(__BORLANDC__)
# if PY_MAJOR_VERSION < 2 || PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 2
# include <config.h>
# else
# include <pyconfig.h>
# endif
# undef HAVE_HYPOT
# define HAVE_HYPOT 1
# endif