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

long long fixes

[SVN r14434]
This commit is contained in:
Dave Abrahams
2002-07-13 12:11:53 +00:00
parent 3375cdbb49
commit c15812add2

View File

@@ -20,7 +20,10 @@
// 04 Mar 01 Rolled in some changes from the Dragon fork (Dave Abrahams)
// 01 Mar 01 define PyObject_INIT() for Python 1.x (Dave Abrahams)
// Python's LongObject.h helpfully #defines these for us, which confuses Boost's config
//
// Python's LongObject.h helpfully #defines ULONGLONG_MAX for us,
// which confuses Boost's config
//
#include <limits.h>
#ifndef ULONG_MAX
# define BOOST_PYTHON_ULONG_MAX_UNDEFINED
@@ -32,6 +35,9 @@
# define BOOST_PYTHON_ULONGLONG_MAX_UNDEFINED
#endif
//
// Get ahold of Python's version number
//
#include <patchlevel.h>
#ifdef _DEBUG
@@ -105,10 +111,6 @@ typedef int pid_t;
# endif
# undef HAVE_HYPOT
# define HAVE_HYPOT 1
# elif defined(_MSC_VER)
# ifdef __cplusplus
# include <limits> // prevents Python.h from defining LONGLONG_MAX, LONGLONG_MIN, and ULONGLONG_MAX
# endif
# endif
#endif // _WIN32