Skip to content

Commit 286f3dc

Browse files
committed
Added #include <boost/python/detail/prefix.hpp> to ensure that all public Boost.Python headers begin by #including Python.h before as many system headers as possible.
[SVN r18626]
1 parent a731322 commit 286f3dc

68 files changed

Lines changed: 150 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

include/boost/python/args.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef KEYWORDS_DWA2002323_HPP
77
# define KEYWORDS_DWA2002323_HPP
88

9+
# include <boost/python/detail/prefix.hpp>
10+
911
# include <boost/python/args_fwd.hpp>
1012
# include <boost/config.hpp>
1113
# include <boost/python/detail/preprocessor.hpp>

include/boost/python/args_fwd.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef ARGS_FWD_DWA2002927_HPP
77
# define ARGS_FWD_DWA2002927_HPP
88

9+
# include <boost/python/detail/prefix.hpp>
10+
911
# include <boost/python/handle.hpp>
1012
# include <boost/config.hpp>
1113
# include <cstddef>

include/boost/python/back_reference.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef BACK_REFERENCE_DWA2002510_HPP
77
# define BACK_REFERENCE_DWA2002510_HPP
88

9+
# include <boost/python/detail/prefix.hpp>
10+
911
# include <boost/python/object_fwd.hpp>
1012
# include <boost/python/detail/dependent.hpp>
1113
# include <boost/python/detail/raw_pyobject.hpp>

include/boost/python/base_type_traits.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef BASE_TYPE_TRAITS_DWA2002614_HPP
77
# define BASE_TYPE_TRAITS_DWA2002614_HPP
88

9+
# include <boost/python/detail/prefix.hpp>
10+
911
namespace boost { namespace python {
1012

1113
namespace detail

include/boost/python/bases.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// to its suitability for any purpose.
66
#ifndef BASES_DWA2002321_HPP
77
# define BASES_DWA2002321_HPP
8+
9+
# include <boost/python/detail/prefix.hpp>
810
# include <boost/type_traits/object_traits.hpp>
911
# include <boost/python/detail/type_list.hpp>
1012
# include <boost/mpl/if.hpp>

include/boost/python/borrowed.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// to its suitability for any purpose.
66
#ifndef BORROWED_DWA2002614_HPP
77
# define BORROWED_DWA2002614_HPP
8+
9+
# include <boost/python/detail/prefix.hpp>
810
# include <boost/python/detail/borrowed_ptr.hpp>
911

1012
namespace boost { namespace python {

include/boost/python/call.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
# ifndef CALL_DWA2002411_HPP
1010
# define CALL_DWA2002411_HPP
1111

12+
# include <boost/python/detail/prefix.hpp>
13+
1214
# include <boost/type.hpp>
1315

1416
# include <boost/python/converter/arg_to_python.hpp>

include/boost/python/call_method.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# ifndef CALL_METHOD_DWA2002411_HPP
99
# define CALL_METHOD_DWA2002411_HPP
1010

11+
# include <boost/python/detail/prefix.hpp>
12+
1113
# include <boost/type.hpp>
1214

1315
# include <boost/python/converter/arg_to_python.hpp>

include/boost/python/cast.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef CAST_DWA200269_HPP
77
# define CAST_DWA200269_HPP
88

9+
# include <boost/python/detail/prefix.hpp>
10+
911
# include <boost/python/detail/wrap_python.hpp>
1012
# include <boost/type_traits/same_traits.hpp>
1113
# include <boost/type_traits/cv_traits.hpp>

include/boost/python/class.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef CLASS_DWA200216_HPP
77
# define CLASS_DWA200216_HPP
88

9+
# include <boost/python/detail/prefix.hpp>
10+
911
# include <boost/python/class_fwd.hpp>
1012
# include <boost/python/object/class.hpp>
1113

0 commit comments

Comments
 (0)