Ticket #6409: boost-python.patch

File boost-python.patch, 1.6 KB (added by Petr Machata <pmachata@…>, 11 years ago)
  • boost/python/detail/config.hpp

    diff -urp boost_1_48_0~/boost/python/detail/config.hpp boost_1_48_0/boost/python/detail/config.hpp
    old new  
    7676
    7777#  if BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY
    7878#     if defined(BOOST_PYTHON_SOURCE)
    79 #        define BOOST_PYTHON_DECL __attribute__ ((visibility("default")))
     79#        define BOOST_PYTHON_DECL __attribute__ ((__visibility__("default")))
    8080#        define BOOST_PYTHON_BUILD_DLL
    8181#     else
    8282#        define BOOST_PYTHON_DECL
    8383#     endif
    8484#     define BOOST_PYTHON_DECL_FORWARD
    85 #     define BOOST_PYTHON_DECL_EXCEPTION __attribute__ ((visibility("default")))
     85#     define BOOST_PYTHON_DECL_EXCEPTION __attribute__ ((__visibility__("default")))
    8686#  elif (defined(_WIN32) || defined(__CYGWIN__))
    8787#     if defined(BOOST_PYTHON_SOURCE)
    8888#        define BOOST_PYTHON_DECL __declspec(dllexport)
  • boost/python/module_init.hpp

    diff -urp boost_1_48_0~/boost/python/module_init.hpp boost_1_48_0/boost/python/module_init.hpp
    old new extern "C" __declspec(dllexport) _BOOST_  
    7676
    7777#   define BOOST_PYTHON_MODULE_INIT(name)                               \
    7878  void BOOST_PP_CAT(init_module_,name)();                               \
    79 extern "C" __attribute__ ((visibility("default"))) _BOOST_PYTHON_MODULE_INIT(name)
     79extern "C" __attribute__ ((__visibility__("default"))) _BOOST_PYTHON_MODULE_INIT(name)
    8080
    8181#  else
    8282