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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user