diff --git boost/log/detail/setup_config.hpp boost/log/detail/setup_config.hpp
|
|
|
30 | 30 | # define BOOST_LOG_SETUP_DLL |
31 | 31 | # endif |
32 | 32 | |
33 | | # if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_LOG_SETUP_DLL) |
34 | | # define BOOST_LOG_SETUP_API __declspec(dllimport) |
35 | | # else |
| 33 | # if defined(BOOST_LOG_SETUP_DLL) |
| 34 | # if defined(BOOST_SYMBOL_IMPORT) |
| 35 | # define BOOST_LOG_SETUP_API BOOST_SYMBOL_IMPORT |
| 36 | # elif defined(BOOST_HAS_DECLSPEC) |
| 37 | # define BOOST_LOG_SETUP_API __declspec(dllimport) |
| 38 | # endif |
| 39 | # endif |
| 40 | # ifndef BOOST_LOG_SETUP_API |
36 | 41 | # define BOOST_LOG_SETUP_API |
37 | | # endif // defined(BOOST_HAS_DECLSPEC) |
| 42 | # endif |
| 43 | |
38 | 44 | // |
39 | 45 | // Automatically link to the correct build variant where possible. |
40 | 46 | // |
… |
… |
|
48 | 54 | |
49 | 55 | #else // !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB) |
50 | 56 | |
51 | | # if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_LOG_SETUP_DLL) |
52 | | # define BOOST_LOG_SETUP_API __declspec(dllexport) |
53 | | # elif defined(__GNUC__) && __GNUC__ >= 4 && (defined(linux) || defined(__linux) || defined(__linux__)) |
54 | | # define BOOST_LOG_SETUP_API __attribute__((visibility("default"))) |
55 | | # else |
56 | | # define BOOST_LOG_SETUP_API |
| 57 | # if defined(BOOST_LOG_SETUP_DLL) |
| 58 | # if defined(BOOST_SYMBOL_EXPORT) |
| 59 | # define BOOST_LOG_SETUP_API BOOST_SYMBOL_EXPORT |
| 60 | # elif defined(BOOST_HAS_DECLSPEC) |
| 61 | # define BOOST_LOG_SETUP_API __declspec(dllexport) |
| 62 | # endif |
| 63 | # endif |
| 64 | # ifndef BOOST_LOG_SETUP_API |
| 65 | # define BOOST_LOG_SETUP_API BOOST_SYMBOL_VISIBLE |
57 | 66 | # endif |
58 | 67 | |
59 | 68 | #endif // !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB) |