mirror of
https://github.com/boostorg/python.git
synced 2026-01-24 18:12:43 +00:00
tru64cxx6.5 fixes
[SVN r14421]
This commit is contained in:
@@ -89,7 +89,9 @@ struct rvalue_from_python_storage
|
||||
template <class T>
|
||||
struct rvalue_from_python_data : rvalue_from_python_storage<T>
|
||||
{
|
||||
# if (!defined(__MWERKS__) || __MWERKS__ >= 0x3000) && (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 245)
|
||||
# if (!defined(__MWERKS__) || __MWERKS__ >= 0x3000) \
|
||||
&& (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 245) \
|
||||
&& (!defined(__DECCXX_VER) || __DECCXX_VER > 60590014)
|
||||
// This must always be a POD struct with m_data its first member.
|
||||
BOOST_STATIC_ASSERT(offsetof(rvalue_from_python_storage<T>,stage1) == 0);
|
||||
# endif
|
||||
|
||||
@@ -20,6 +20,17 @@
|
||||
// 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
|
||||
#include <limits.h>
|
||||
#ifndef ULONG_MAX
|
||||
# define BOOST_PYTHON_ULONG_MAX_UNDEFINED
|
||||
#endif
|
||||
#ifndef LONGLONG_MAX
|
||||
# define BOOST_PYTHON_LONGLONG_MAX_UNDEFINED
|
||||
#endif
|
||||
#ifndef ULONGLONG_MAX
|
||||
# define BOOST_PYTHON_ULONGLONG_MAX_UNDEFINED
|
||||
#endif
|
||||
|
||||
#include <patchlevel.h>
|
||||
|
||||
@@ -104,6 +115,21 @@ typedef int pid_t;
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
#ifdef BOOST_PYTHON_ULONG_MAX_UNDEFINED
|
||||
# undef ULONG_MAX
|
||||
# undef BOOST_PYTHON_ULONG_MAX_UNDEFINED
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_PYTHON_LONGLONG_MAX_UNDEFINED
|
||||
# undef LONGLONG_MAX
|
||||
# undef BOOST_PYTHON_LONGLONG_MAX_UNDEFINED
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_PYTHON_ULONGLONG_MAX_UNDEFINED
|
||||
# undef ULONGLONG_MAX
|
||||
# undef BOOST_PYTHON_ULONGLONG_MAX_UNDEFINED
|
||||
#endif
|
||||
|
||||
#ifdef PY_MSC_VER_DEFINED_FROM_WRAP_PYTHON_H
|
||||
# undef _MSC_VER
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user