2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

pyconfig.h must be included before any system header (as per Python docs; essential for Python 2.3 under Tru64 Unix)

[SVN r17799]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2003-03-10 17:25:52 +00:00
parent c29241d859
commit 13b1f434ad
14 changed files with 21 additions and 14 deletions

View File

@@ -12,6 +12,7 @@
#ifndef CONFIG_DWA052200_H_
# define CONFIG_DWA052200_H_
# include <pyconfig.h>
# include <boost/config.hpp>
# ifdef BOOST_NO_OPERATORS_IN_NAMESPACE

View File

@@ -24,6 +24,7 @@
// Python's LongObject.h helpfully #defines ULONGLONG_MAX for us,
// which confuses Boost's config
//
#include <pyconfig.h>
#include <limits.h>
#ifndef ULONG_MAX
# define BOOST_PYTHON_ULONG_MAX_UNDEFINED

View File

@@ -6,6 +6,9 @@
#ifndef HAS_BACK_REFERENCE_DWA2002323_HPP
# define HAS_BACK_REFERENCE_DWA2002323_HPP
#include <pyconfig.h>
#include <boost/config.hpp>
namespace boost { namespace python {
// traits class which users can specialize to indicate that a class

View File

@@ -6,6 +6,7 @@
#ifndef OBJECT_CORE_DWA2002615_HPP
# define OBJECT_CORE_DWA2002615_HPP
# include <pyconfig.h>
# include <boost/type.hpp>
# include <boost/python/call.hpp>

View File

@@ -14,6 +14,7 @@
# pragma once
# endif
# include <pyconfig.h>
# include <boost/config.hpp>
# include <boost/mpl/bool.hpp>

View File

@@ -3,13 +3,13 @@
// copyright notice appears in all copies. This software is provided
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#include <string>
#include <boost/python/operators.hpp>
#include <boost/python/class.hpp>
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
#include <boost/python/scope.hpp>
#include <boost/python/manage_new_object.hpp>
#include <string>
#include "test_class.hpp"
// Just use math.h here; trying to use std::pow() causes too much

View File

@@ -7,10 +7,10 @@
// embedded_hello -- A simple Boost.Python embedding example -- by
// Dirk Gerrits
#include <iostream>
#include <stdexcept>
#include <boost/python.hpp>
#include <boost/scoped_ptr.hpp>
#include <iostream>
#include <stdexcept>
namespace python = boost::python;

View File

@@ -4,7 +4,6 @@
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#include "test_class.hpp"
#include <boost/python/extract.hpp>
#include <boost/python/list.hpp>
#include <boost/python/module.hpp>
@@ -15,6 +14,7 @@
#include <boost/python/implicit.hpp>
#include <string>
#include <boost/lexical_cast.hpp>
#include "test_class.hpp"
#include <cassert>
using namespace boost::python;

View File

@@ -5,8 +5,6 @@
// to its suitability for any purpose.
#include "simple_type.hpp"
#include "complicated.hpp"
#include <boost/python/def.hpp>
#include <boost/python/module.hpp>
#include <boost/python/class.hpp>
@@ -17,6 +15,8 @@
#include <boost/python/errors.hpp>
#include <boost/python/manage_new_object.hpp>
#include <string.h>
#include "simple_type.hpp"
#include "complicated.hpp"
// Declare some straightforward extension types
extern "C" void

View File

@@ -3,11 +3,11 @@
// copyright notice appears in all copies. This software is provided
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#include <string>
#include <boost/python/operators.hpp>
#include <boost/python/class.hpp>
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
#include <string>
#include "test_class.hpp"
#if __GNUC__ != 2
# include <ostream>

View File

@@ -20,8 +20,6 @@
For more information refer to boost/libs/python/doc/pickle.html.
*/
#include <string>
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
#include <boost/python/class.hpp>
@@ -29,6 +27,8 @@
#include <boost/python/extract.hpp>
#include <boost/python/detail/api_placeholder.hpp>
#include <string>
namespace { // Avoid cluttering the global namespace.
// A friendly class.

View File

@@ -15,8 +15,6 @@
For more information refer to boost/libs/python/doc/pickle.html.
*/
#include <string>
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
#include <boost/python/class.hpp>
@@ -26,6 +24,8 @@
#include <boost/python/detail/api_placeholder.hpp>
#include <boost/python/back_reference.hpp>
#include <string>
namespace { // Avoid cluttering the global namespace.
// A friendly class.

View File

@@ -3,11 +3,11 @@
// copyright notice appears in all copies. This software is provided
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#include <boost/static_assert.hpp>
#include <boost/type_traits/same_traits.hpp>
#include <boost/python/object/select_holder.hpp>
#include <boost/python/has_back_reference.hpp>
#include <boost/python/detail/not_specified.hpp>
#include <boost/static_assert.hpp>
#include <boost/type_traits/same_traits.hpp>
#include <boost/function/function0.hpp>
#include <memory>

View File

@@ -3,9 +3,9 @@
// copyright notice appears in all copies. This software is provided
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#include <string>
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
#include <string>
#include <complex>
#include <boost/python/handle.hpp>
#include <boost/python/cast.hpp>