Skip to content

Commit

Permalink
Normalize static/dynamic link macros and avoid redefinition warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Dec 22, 2023
1 parent 47d5bc7 commit f09045a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions include/boost/python/detail/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,15 @@
****************************************************************************/

// backwards compatibility:
#ifdef BOOST_PYTHON_STATIC_LIB
# define BOOST_PYTHON_STATIC_LINK
# elif !defined(BOOST_PYTHON_DYNAMIC_LIB)
#if defined(BOOST_PYTHON_STATIC_LINK) && !defined(BOOST_PYTHON_STATIC_LIB)
# define BOOST_PYTHON_STATIC_LIB
#endif

#if defined(BOOST_PYTHON_DYNAMIC_LINK) && !defined(BOOST_PYTHON_DYNAMIC_LIB)
# define BOOST_PYTHON_DYNAMIC_LIB
#endif

#if !defined(BOOST_PYTHON_STATIC_LIB) && !defined(BOOST_PYTHON_DYNAMIC_LIB)
# define BOOST_PYTHON_DYNAMIC_LIB
#endif

Expand Down

0 comments on commit f09045a

Please sign in to comment.