Ticket #583: boost-python-module_init_hpp.patch

File boost-python-module_init_hpp.patch, 1.8 KB (added by Thomas Witt, 15 years ago)
  • boost/python/module_init.hpp

    diff -ru boost_1_34_0/boost/python/module_init.hpp boost_1_34_0_ibm/boost/python/module_init.hpp
    old new  
    2626}                                                       \
    2727void init_module_##name()
    2828
    29 #  elif defined(_AIX) && !defined(BOOST_PYTHON_STATIC_MODULE)
    30 
    31 #   include <boost/python/detail/aix_init_module.hpp>
    32 #   define BOOST_PYTHON_MODULE_INIT(name)                               \
    33 void init_module_##name();                                              \
    34 extern "C"                                                              \
    35 {                                                                       \
    36     extern PyObject* _PyImport_LoadDynamicModule(char*, char*, FILE *); \
    37     void init##name()                                                   \
    38     {                                                                   \
    39         boost::python::detail::aix_init_module(                         \
    40             _PyImport_LoadDynamicModule, #name, &init_module_##name);   \
    41     }                                                                   \
    42 }                                                                       \
    43 void init_module_##name()
    44 
    45 # elif BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY
     29#  elif BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY
    4630
    4731#   define BOOST_PYTHON_MODULE_INIT(name)                               \
    4832void init_module_##name();                                              \
     
    5236}                                                                       \
    5337void init_module_##name()
    5438
    55 # else
     39#  else
    5640
    5741#   define BOOST_PYTHON_MODULE_INIT(name)                               \
    5842void init_module_##name();                                              \