Salome HOME
Update configuration for SALOME 9.8
[tools/configuration.git] / config / patches / boost.101-python.patch
1 diff --git a/include/boost/python/detail/config.hpp b/include/boost/python/detail/config.hpp
2 index acf58831..8dce9b74 100644
3 --- a/include/boost/python/detail/config.hpp
4 +++ b/include/boost/python/detail/config.hpp
5 @@ -105,7 +105,9 @@
6  // Set the name of our library, this will get undef'ed by auto_link.hpp
7  // once it's done with it:
8  //
9 -#define BOOST_LIB_NAME boost_python##PY_MAJOR_VERSION##PY_MINOR_VERSION
10 +#define _BOOST_PYTHON_CONCAT(N, M, m) N ## M ## m
11 +#define BOOST_PYTHON_CONCAT(N, M, m) _BOOST_PYTHON_CONCAT(N, M, m)
12 +#define BOOST_LIB_NAME BOOST_PYTHON_CONCAT(boost_python, PY_MAJOR_VERSION, PY_MINOR_VERSION)
13  //
14  // If we're importing code from a dll, then tell auto_link.hpp about it:
15  //
16 @@ -118,6 +120,9 @@
17  #include <boost/config/auto_link.hpp>
18  #endif  // auto-linking disabled
19  
20 +#undef BOOST_PYTHON_CONCAT
21 +#undef _BOOST_PYTHON_CONCAT
22 +
23  #ifndef BOOST_PYTHON_NO_PY_SIGNATURES
24  #define BOOST_PYTHON_SUPPORTS_PY_SIGNATURES // enables smooth transition
25  #endif