summaryrefslogtreecommitdiff
path: root/boost/python
diff options
context:
space:
mode:
Diffstat (limited to 'boost/python')
-rw-r--r--boost/python/detail/config.hpp6
-rw-r--r--boost/python/numpy/config.hpp6
2 files changed, 2 insertions, 10 deletions
diff --git a/boost/python/detail/config.hpp b/boost/python/detail/config.hpp
index 3e4b7c9e54..acf588311f 100644
--- a/boost/python/detail/config.hpp
+++ b/boost/python/detail/config.hpp
@@ -105,11 +105,7 @@
// Set the name of our library, this will get undef'ed by auto_link.hpp
// once it's done with it:
//
-#if PY_MAJOR_VERSION == 2
-# define BOOST_LIB_NAME boost_python
-#elif PY_MAJOR_VERSION == 3
-# define BOOST_LIB_NAME boost_python3
-#endif
+#define BOOST_LIB_NAME boost_python##PY_MAJOR_VERSION##PY_MINOR_VERSION
//
// If we're importing code from a dll, then tell auto_link.hpp about it:
//
diff --git a/boost/python/numpy/config.hpp b/boost/python/numpy/config.hpp
index 97178906e0..e6484bc51f 100644
--- a/boost/python/numpy/config.hpp
+++ b/boost/python/numpy/config.hpp
@@ -62,11 +62,7 @@
// Set the name of our library, this will get undef'ed by auto_link.hpp
// once it's done with it:
//
-#if PY_MAJOR_VERSION == 2
-# define BOOST_LIB_NAME boost_numpy
-#elif PY_MAJOR_VERSION == 3
-# define BOOST_LIB_NAME boost_numpy3
-#endif
+#define BOOST_LIB_NAME boost_numpy##PY_MAJOR_VERSION##PY_MINOR_VERSION
//
// If we're importing code from a dll, then tell auto_link.hpp about it:
//