diff --git a/include/boost/python/numpy/config.hpp b/include/boost/python/numpy/config.hpp index 8cd0af47..97178906 100644 --- a/include/boost/python/numpy/config.hpp +++ b/include/boost/python/numpy/config.hpp @@ -62,7 +62,11 @@ // Set the name of our library, this will get undef'ed by auto_link.hpp // once it's done with it: // -#define BOOST_LIB_NAME boost_numpy +#if PY_MAJOR_VERSION == 2 +# define BOOST_LIB_NAME boost_numpy +#elif PY_MAJOR_VERSION == 3 +# define BOOST_LIB_NAME boost_numpy3 +#endif // // If we're importing code from a dll, then tell auto_link.hpp about it: //