From a350b666faafe048311aabcc7d9baa48732fce72 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 7 Mar 2001 03:56:25 +0000 Subject: [PATCH] Added BOOST_PYTHON_MODULE_INIT [SVN r9475] --- include/boost/python/detail/config.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/python/detail/config.hpp b/include/boost/python/detail/config.hpp index 3207f7c6..9792695e 100644 --- a/include/boost/python/detail/config.hpp +++ b/include/boost/python/detail/config.hpp @@ -57,4 +57,10 @@ # define BOOST_CSTD_ std # endif +#ifdef _WIN32 +# define BOOST_PYTHON_MODULE_INIT(name) extern "C" __declspec(dllexport) void init##name() +#else +# define BOOST_PYTHON_MODULE_INIT(name) extern "C" void init##name() +#endif + #endif // CONFIG_DWA052200_H_