From b84a8fd73736f5edabad59a9ed76397dcd454bc6 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 7 Jan 2003 17:38:08 +0000 Subject: [PATCH] support for BOOST_PYTHON_STATIC_MODULE [SVN r16786] --- include/boost/python/module_init.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/python/module_init.hpp b/include/boost/python/module_init.hpp index 1d65308a..adc259f3 100644 --- a/include/boost/python/module_init.hpp +++ b/include/boost/python/module_init.hpp @@ -17,7 +17,7 @@ BOOST_PYTHON_DECL void init_module(char const* name, void(*)()); }}} -# if defined(_WIN32) || defined(__CYGWIN__) +# if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(BOOST_PYTHON_STATIC_MODULE) # define BOOST_PYTHON_MODULE_INIT(name) \ void init_module_##name(); \ @@ -28,7 +28,7 @@ extern "C" __declspec(dllexport) void init##name() \ } \ void init_module_##name() -# elif defined(_AIX) +# elif defined(_AIX) && !defined(BOOST_PYTHON_STATIC_MODULE) # include # define BOOST_PYTHON_MODULE_INIT(name) \