2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

Restore Python <2.2 compatibility (config.h, pyconfig.h).

[SVN r12064]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2001-12-15 04:59:11 +00:00
parent c6fd3c47a4
commit 3a86a69964

View File

@@ -72,11 +72,19 @@ typedef int pid_t;
# define _MSC_VER 900
# endif
# include <pyconfig.h>
# 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__)
# include <pyconfig.h>
# 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
# elif defined(_MSC_VER)