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
6 // Set the name of our library, this will get undef'ed by auto_link.hpp
7 // once it's done with it:
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)
14 // If we're importing code from a dll, then tell auto_link.hpp about it:
17 #include <boost/config/auto_link.hpp>
18 #endif // auto-linking disabled
20 +#undef BOOST_PYTHON_CONCAT
21 +#undef _BOOST_PYTHON_CONCAT
23 #ifndef BOOST_PYTHON_NO_PY_SIGNATURES
24 #define BOOST_PYTHON_SUPPORTS_PY_SIGNATURES // enables smooth transition