2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-20 04:42:28 +00:00

Compare commits

...

1 Commits

Author SHA1 Message Date
Peter Dimov
f09045ae62 Normalize static/dynamic link macros and avoid redefinition warnings 2023-12-22 05:36:47 +02:00

View File

@@ -57,9 +57,15 @@
****************************************************************************/ ****************************************************************************/
// backwards compatibility: // backwards compatibility:
#ifdef BOOST_PYTHON_STATIC_LIB #if defined(BOOST_PYTHON_STATIC_LINK) && !defined(BOOST_PYTHON_STATIC_LIB)
# define BOOST_PYTHON_STATIC_LINK # define BOOST_PYTHON_STATIC_LIB
# elif !defined(BOOST_PYTHON_DYNAMIC_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 # define BOOST_PYTHON_DYNAMIC_LIB
#endif #endif