Ticket #2114: boost_visibility.diff
File boost_visibility.diff, 24.5 KB (added by , 13 years ago) |
---|
-
home/hunold/packages/boost/boost/config/compiler/gcc.hpp
101 101 # endif 102 102 #endif 103 103 104 // 105 // Symbol visibility support for gcc-4.x 106 // MinGW/Cygwin is handled via platform/win32.hpp 107 // 108 #if __GNUC__ >= 4 && !defined(__MINGW32__) && !defined(__CYGWIN__) 109 # define BOOST_SYMBOL_EXPORT __attribute__((visibility("default"))) 110 # define BOOST_SYMBOL_HIDE __attribute__((visibility("hidden"))) 111 # define BOOST_SYMBOL_IMPORT BOOST_SYMBOL_EXPORT 112 # define BOOST_SYMBOL_FORWARD_EXPORT 113 # define BOOST_SYMBOL_FORWARD_IMPORT 114 # define BOOST_EXCEPTION_EXPORT BOOST_SYMBOL_EXPORT 115 # define BOOST_EXCEPTION_IMPORT BOOST_SYMBOL_IMPORT 116 #endif 117 118 // 104 119 // C++0x features not implemented in any GCC version 105 120 // 106 121 #define BOOST_NO_CONSTEXPR -
home/hunold/packages/boost/boost/config/platform/win32.hpp
25 25 # define BOOST_HAS_DECLSPEC 26 26 #endif 27 27 28 // 29 // all compilers support dllexport/-import 30 // 31 #define BOOST_SYMBOL_EXPORT __declspec(dllexport) 32 #define BOOST_SYMBOL_HIDE 33 #define BOOST_SYMBOL_IMPORT __declspec(dllimport) 34 #define BOOST_SYMBOL_FORWARD_EXPORT BOOST_SYMBOL_EXPORT 35 #define BOOST_SYMBOL_FORWARD_IMPORT BOOST_SYMBOL_IMPORT 36 #define BOOST_EXCEPTION_EXPORT BOOST_SYMBOL_EXPORT 37 #define BOOST_EXCEPTION_IMPORT BOOST_SYMBOL_IMPORT 38 28 39 #if defined(__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 2) || ((__MINGW32_MAJOR_VERSION == 2) && (__MINGW32_MINOR_VERSION >= 0))) 29 40 # define BOOST_HAS_STDINT_H 30 41 # define __STDC_LIMIT_MACROS -
home/hunold/packages/boost/boost/archive/detail/basic_config.hpp
22 22 23 23 #include <boost/config.hpp> 24 24 25 #ifdef BOOST_ HAS_DECLSPEC// defined in config system25 #ifdef BOOST_SYMBOL_EXPORT // defined in config system 26 26 // we need to import/export our code only if the user has specifically 27 27 // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost 28 28 // libraries to be dynamically linked, or BOOST_ARCHIVE_DYN_LINK … … 30 30 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_ARCHIVE_DYN_LINK) 31 31 // export if this is our own source, otherwise import: 32 32 #ifdef BOOST_ARCHIVE_SOURCE 33 # define BOOST_ARCHIVE_DECL __declspec(dllexport)33 # define BOOST_ARCHIVE_DECL BOOST_SYMBOL_EXPORT 34 34 #else 35 # define BOOST_ARCHIVE_DECL __declspec(dllimport)35 # define BOOST_ARCHIVE_DECL BOOST_SYMBOL_IMPORT 36 36 #endif // BOOST_ARCHIVE_SOURCE 37 37 #endif // DYN_LINK 38 #endif // BOOST_ HAS_DECLSPEC38 #endif // BOOST_SYMBOL_EXPORT 39 39 // 40 40 // if BOOST_ARCHIVE_DECL isn't defined yet define it now: 41 41 #ifndef BOOST_ARCHIVE_DECL -
home/hunold/packages/boost/boost/archive/detail/decl.hpp
24 24 #include <boost/config.hpp> 25 25 #include <boost/preprocessor/facilities/empty.hpp> 26 26 27 #if defined(BOOST_ HAS_DECLSPEC)27 #if defined(BOOST_SYMBOL_EXPORT) 28 28 #if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK)) 29 29 #if defined(BOOST_ARCHIVE_SOURCE) 30 30 #if defined(__BORLANDC__) 31 31 #define BOOST_ARCHIVE_DECL(T) T __export 32 32 #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) T __export 33 33 #else 34 #define BOOST_ARCHIVE_DECL(T) __declspec(dllexport)T35 #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) __declspec(dllexport)T34 #define BOOST_ARCHIVE_DECL(T) BOOST_SYMBOL_EXPORT T 35 #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) BOOST_SYMBOL_EXPORT T 36 36 #endif 37 37 #else 38 38 #if defined(__BORLANDC__) 39 39 #define BOOST_ARCHIVE_DECL(T) T __import 40 40 #else 41 #define BOOST_ARCHIVE_DECL(T) __declspec(dllimport)T41 #define BOOST_ARCHIVE_DECL(T) BOOST_SYMBOL_IMPORT T 42 42 #endif 43 43 #endif 44 44 #if defined(BOOST_WARCHIVE_SOURCE) … … 46 46 #define BOOST_WARCHIVE_DECL(T) T __export 47 47 #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) T __export 48 48 #else 49 #define BOOST_WARCHIVE_DECL(T) __declspec(dllexport)T50 #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) __declspec(dllexport)T49 #define BOOST_WARCHIVE_DECL(T) BOOST_SYMBOL_EXPORT T 50 #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) BOOST_SYMBOL_EXPORT T 51 51 #endif 52 52 #else 53 53 #if defined(__BORLANDC__) 54 54 #define BOOST_WARCHIVE_DECL(T) T __import 55 55 #else 56 #define BOOST_WARCHIVE_DECL(T) __declspec(dllimport)T56 #define BOOST_WARCHIVE_DECL(T) BOOST_SYMBOL_IMPORT T 57 57 #endif 58 58 #endif 59 59 #if !defined(BOOST_WARCHIVE_SOURCE) && !defined(BOOST_ARCHIVE_SOURCE) 60 60 #if defined(__BORLANDC__) 61 61 #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) T __import 62 62 #else 63 #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) __declspec(dllimport)T63 #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) BOOST_SYMBOL_IMPORT T 64 64 #endif 65 65 #endif 66 66 #endif 67 #endif // BOOST_ HAS_DECLSPEC67 #endif // BOOST_SYMBOL_EXPORT 68 68 69 69 #if ! defined(BOOST_ARCHIVE_DECL) 70 70 #define BOOST_ARCHIVE_DECL(T) T -
home/hunold/packages/boost/boost/serialization/config.hpp
27 27 #undef BOOST_SERIALIZATION_DECL 28 28 #endif 29 29 30 #ifdef BOOST_ HAS_DECLSPEC// defined in config system30 #ifdef BOOST_SYMBOL_EXPORT // defined in config system 31 31 // we need to import/export our code only if the user has specifically 32 32 // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost 33 33 // libraries to be dynamically linked, or BOOST_SERIALIZATION_DYN_LINK … … 41 41 #if defined(__BORLANDC__) 42 42 #define BOOST_SERIALIZATION_DECL(T) T __export 43 43 #else 44 #define BOOST_SERIALIZATION_DECL(T) __declspec(dllexport)T44 #define BOOST_SERIALIZATION_DECL(T) BOOST_SYMBOL_EXPORT T 45 45 #endif 46 46 #else 47 47 #if defined(__BORLANDC__) 48 48 #define BOOST_SERIALIZATION_DECL(T) T __import 49 49 #else 50 #define BOOST_SERIALIZATION_DECL(T) __declspec(dllimport)T50 #define BOOST_SERIALIZATION_DECL(T) BOOST_SYMBOL_IMPORT T 51 51 #endif 52 52 #endif // defined(BOOST_SERIALIZATION_SOURCE) 53 53 #endif // defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK) 54 #endif // BOOST_ HAS_DECLSPEC54 #endif // BOOST_SYMBOL_EXPORT 55 55 56 56 // if BOOST_SERIALIZATION_DECL isn't defined yet define it now: 57 57 #ifndef BOOST_SERIALIZATION_DECL -
home/hunold/packages/boost/boost/python/detail/config.hpp
67 67 #endif 68 68 69 69 #if defined(BOOST_PYTHON_DYNAMIC_LIB) 70 71 # if !defined(_WIN32) && !defined(__CYGWIN__) \ 72 && !defined(BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY) \ 73 && BOOST_WORKAROUND(__GNUC__, >= 3) && (__GNUC_MINOR__ >=5 || __GNUC__ > 3) 74 # define BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY 1 75 # endif 76 77 # if BOOST_PYTHON_USE_GCC_SYMBOL_VISIBILITY 70 # if defined(BOOST_SYMBOL_EXPORT) 78 71 # if defined(BOOST_PYTHON_SOURCE) 79 # define BOOST_PYTHON_DECL __attribute__ ((visibility("default"))) 72 # define BOOST_PYTHON_DECL BOOST_SYMBOL_EXPORT 73 # define BOOST_PYTHON_DECL_FORWARD BOOST_SYMBOL_FORWARD_EXPORT 74 # define BOOST_PYTHON_DECL_EXCEPTION BOOST_EXCEPTION_EXPORT 80 75 # define BOOST_PYTHON_BUILD_DLL 81 76 # else 82 # define BOOST_PYTHON_DECL 77 # define BOOST_PYTHON_DECL BOOST_SYMBOL_IMPORT 78 # define BOOST_PYTHON_DECL_FORWARD BOOST_SYMBOL_FORWARD_IMPORT 79 # define BOOST_PYTHON_DECL_EXCEPTION BOOST_EXCEPTION_IMPORT 83 80 # endif 84 # define BOOST_PYTHON_DECL_FORWARD85 # define BOOST_PYTHON_DECL_EXCEPTION __attribute__ ((visibility("default")))86 # elif (defined(_WIN32) || defined(__CYGWIN__))87 # if defined(BOOST_PYTHON_SOURCE)88 # define BOOST_PYTHON_DECL __declspec(dllexport)89 # define BOOST_PYTHON_BUILD_DLL90 # else91 # define BOOST_PYTHON_DECL __declspec(dllimport)92 # endif93 81 # endif 94 95 82 #endif 96 83 97 84 #ifndef BOOST_PYTHON_DECL … … 99 86 #endif 100 87 101 88 #ifndef BOOST_PYTHON_DECL_FORWARD 102 # define BOOST_PYTHON_DECL_FORWARD BOOST_PYTHON_DECL89 # define BOOST_PYTHON_DECL_FORWARD 103 90 #endif 104 91 105 92 #ifndef BOOST_PYTHON_DECL_EXCEPTION 106 # define BOOST_PYTHON_DECL_EXCEPTION BOOST_PYTHON_DECL93 # define BOOST_PYTHON_DECL_EXCEPTION 107 94 #endif 108 95 109 96 #if BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042)) -
home/hunold/packages/boost/boost/date_time/compiler_config.hpp
118 118 * 119 119 */ 120 120 121 #ifdef BOOST_ HAS_DECLSPEC// defined in config system121 #ifdef BOOST_SYMBOL_EXPORT // defined in config system 122 122 // we need to import/export our code only if the user has specifically 123 123 // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost 124 124 // libraries to be dynamically linked, or BOOST_DATE_TIME_DYN_LINK … … 126 126 # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_DATE_TIME_DYN_LINK) 127 127 // export if this is our own source, otherwise import: 128 128 # ifdef BOOST_DATE_TIME_SOURCE 129 # define BOOST_DATE_TIME_DECL __declspec(dllexport)129 # define BOOST_DATE_TIME_DECL BOOST_SYMBOL_EXPORT 130 130 # else 131 # define BOOST_DATE_TIME_DECL __declspec(dllimport)131 # define BOOST_DATE_TIME_DECL BOOST_SYMBOL_IMPORT 132 132 # endif // BOOST_DATE_TIME_SOURCE 133 133 # endif // DYN_LINK 134 #endif // BOOST_ HAS_DECLSPEC134 #endif // BOOST_SYMBOL_EXPORT 135 135 // 136 136 // if BOOST_WHATEVER_DECL isn't defined yet define it now: 137 137 #ifndef BOOST_DATE_TIME_DECL -
home/hunold/packages/boost/boost/filesystem/config.hpp
70 70 # error Dynamic linking Boost.Filesystem does not work for Borland; use static linking instead 71 71 # endif 72 72 73 #ifdef BOOST_ HAS_DECLSPEC// defined in config system73 #ifdef BOOST_SYMBOL_EXPORT // defined in config system 74 74 // we need to import/export our code only if the user has specifically 75 75 // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost 76 76 // libraries to be dynamically linked, or BOOST_FILESYSTEM_DYN_LINK … … 78 78 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK) 79 79 // export if this is our own source, otherwise import: 80 80 #ifdef BOOST_FILESYSTEM_SOURCE 81 # define BOOST_FILESYSTEM_DECL __declspec(dllexport)81 # define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_EXPORT 82 82 #else 83 # define BOOST_FILESYSTEM_DECL __declspec(dllimport)83 # define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_IMPORT 84 84 #endif // BOOST_FILESYSTEM_SOURCE 85 85 #endif // DYN_LINK 86 #endif // BOOST_ HAS_DECLSPEC86 #endif // BOOST_SYMBOL_EXPORT 87 87 // 88 88 // if BOOST_FILESYSTEM_DECL isn't defined yet define it now: 89 89 #ifndef BOOST_FILESYSTEM_DECL -
home/hunold/packages/boost/boost/graph/graphviz.hpp
25 25 #include <boost/property_map/dynamic_property_map.hpp> 26 26 #include <boost/graph/overloading.hpp> 27 27 28 #ifdef BOOST_ HAS_DECLSPEC28 #ifdef BOOST_SYMBOL_EXPORT 29 29 # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_GRAPH_DYN_LINK) 30 30 # ifdef BOOST_GRAPH_SOURCE 31 # define BOOST_GRAPH_DECL __declspec(dllexport)31 # define BOOST_GRAPH_DECL BOOST_SYMBOL_EXPORT 32 32 # else 33 # define BOOST_GRAPH_DECL __declspec(dllimport)33 # define BOOST_GRAPH_DECL BOOST_SYMBOL_IMPORT 34 34 # endif // BOOST_GRAPH_SOURCE 35 35 # endif // DYN_LINK 36 #endif // BOOST_ HAS_DECLSPEC36 #endif // BOOST_SYMBOL_EXPORT 37 37 38 38 #ifndef BOOST_GRAPH_DECL 39 39 # define BOOST_GRAPH_DECL -
home/hunold/packages/boost/boost/iostreams/detail/config/dyn_link.hpp
20 20 21 21 //------------------Enable dynamic linking on windows-------------------------// 22 22 23 #ifdef BOOST_ HAS_DECLSPEC23 #ifdef BOOST_SYMBOL_EXPORT 24 24 # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_IOSTREAMS_DYN_LINK) 25 25 # ifdef BOOST_IOSTREAMS_SOURCE 26 # define BOOST_IOSTREAMS_DECL __declspec(dllexport)26 # define BOOST_IOSTREAMS_DECL BOOST_SYMBOL_EXPORT 27 27 # else 28 # define BOOST_IOSTREAMS_DECL __declspec(dllimport)28 # define BOOST_IOSTREAMS_DECL BOOST_SYMBOL_IMPORT 29 29 # endif 30 30 # endif 31 31 #endif -
home/hunold/packages/boost/boost/math/tr1.hpp
20 20 21 21 #endif // __cplusplus 22 22 23 #ifdef BOOST_ HAS_DECLSPEC// defined in config system23 #ifdef BOOST_SYMBOL_EXPORT // defined in config system 24 24 // we need to import/export our code only if the user has specifically 25 25 // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost 26 26 // libraries to be dynamically linked, or BOOST_MATH_TR1_DYN_LINK … … 28 28 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_MATH_TR1_DYN_LINK) 29 29 // export if this is our own source, otherwise import: 30 30 #ifdef BOOST_MATH_TR1_SOURCE 31 # define BOOST_MATH_TR1_DECL __declspec(dllexport)31 # define BOOST_MATH_TR1_DECL BOOST_SYMBOL_EXPORT 32 32 #else 33 # define BOOST_MATH_TR1_DECL __declspec(dllimport)33 # define BOOST_MATH_TR1_DECL BOOST_SYMBOL_IMPORT 34 34 #endif // BOOST_MATH_TR1_SOURCE 35 35 #endif // DYN_LINK 36 #endif // BOOST_ HAS_DECLSPEC36 #endif // BOOST_SYMBOL_EXPORT 37 37 // 38 38 // if BOOST_MATH_TR1_DECL isn't defined yet define it now: 39 39 #ifndef BOOST_MATH_TR1_DECL -
home/hunold/packages/boost/boost/mpi/config.hpp
80 80 * * 81 81 *****************************************************************************/ 82 82 83 #if defined(BOOST_ HAS_DECLSPEC) && (defined(BOOST_MPI_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && !defined(BOOST_MPI_STATIC_LINK)83 #if defined(BOOST_SYMBOL_EXPORT) && (defined(BOOST_MPI_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && !defined(BOOST_MPI_STATIC_LINK) 84 84 # if defined(BOOST_MPI_SOURCE) 85 # define BOOST_MPI_DECL __declspec(dllexport)85 # define BOOST_MPI_DECL BOOST_SYMBOL_EXPORT 86 86 # define BOOST_MPI_BUILD_DLL 87 87 # else 88 # define BOOST_MPI_DECL __declspec(dllimport)88 # define BOOST_MPI_DECL BOOST_SYMBOL_IMPORT 89 89 # endif 90 90 #endif 91 91 -
home/hunold/packages/boost/boost/mpi/python/config.hpp
20 20 * * 21 21 *****************************************************************************/ 22 22 23 #if defined(BOOST_ HAS_DECLSPEC) && (defined(BOOST_MPI_PYTHON_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && !defined(BOOST_MPI_PYTHON_STATIC_LINK)23 #if defined(BOOST_SYMBOL_EXPORT) && (defined(BOOST_MPI_PYTHON_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && !defined(BOOST_MPI_PYTHON_STATIC_LINK) 24 24 # if defined(BOOST_MPI_PYTHON_SOURCE) 25 # define BOOST_MPI_PYTHON_DECL __declspec(dllexport)25 # define BOOST_MPI_PYTHON_DECL BOOST_SYMBOL_EXPORT 26 26 # define BOOST_MPI_PYTHON_BUILD_DLL 27 27 # else 28 # define BOOST_MPI_PYTHON_DECL __declspec(dllimport)28 # define BOOST_MPI_PYTHON_DECL BOOST_SYMBOL_IMPORT 29 29 # endif 30 30 #endif 31 31 -
home/hunold/packages/boost/boost/program_options/config.hpp
35 35 36 36 /////////////////////////////////////////////////////////////////////////////// 37 37 // Windows DLL suport 38 #ifdef BOOST_ HAS_DECLSPEC38 #ifdef BOOST_SYMBOL_EXPORT 39 39 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_PROGRAM_OPTIONS_DYN_LINK) 40 40 // export if this is our own source, otherwise import: 41 41 #ifdef BOOST_PROGRAM_OPTIONS_SOURCE 42 # define BOOST_PROGRAM_OPTIONS_DECL __declspec(dllexport)42 # define BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_EXPORT 43 43 #else 44 # define BOOST_PROGRAM_OPTIONS_DECL __declspec(dllimport)44 # define BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_IMPORT 45 45 #endif // BOOST_PROGRAM_OPTIONS_SOURCE 46 46 #endif // DYN_LINK 47 #endif // BOOST_ HAS_DECLSPEC47 #endif // BOOST_SYMBOL_EXPORT 48 48 49 49 #ifndef BOOST_PROGRAM_OPTIONS_DECL 50 50 #define BOOST_PROGRAM_OPTIONS_DECL -
home/hunold/packages/boost/boost/regex/config.hpp
166 166 # endif 167 167 # ifdef _DLL 168 168 # include <string> 169 extern template class __declspec(dllimport)std::basic_string<unsigned short>;169 extern template class BOOST_SYMBOL_IMPORT std::basic_string<unsigned short>; 170 170 # endif 171 171 # ifdef BOOST_MSVC 172 172 # pragma warning(pop) … … 180 180 * 181 181 ****************************************************************************/ 182 182 183 #if defined(BOOST_ HAS_DECLSPEC) && (defined(BOOST_REGEX_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && !defined(BOOST_REGEX_STATIC_LINK)183 #if defined(BOOST_SYMBOL_EXPORT) && (defined(BOOST_REGEX_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && !defined(BOOST_REGEX_STATIC_LINK) 184 184 # if defined(BOOST_REGEX_SOURCE) 185 # define BOOST_REGEX_DECL __declspec(dllexport)185 # define BOOST_REGEX_DECL BOOST_SYMBOL_EXPORT 186 186 # define BOOST_REGEX_BUILD_DLL 187 187 # else 188 # define BOOST_REGEX_DECL __declspec(dllimport)188 # define BOOST_REGEX_DECL BOOST_SYMBOL_IMPORT 189 189 # endif 190 190 #endif 191 191 -
home/hunold/packages/boost/boost/signals/detail/config.hpp
17 17 18 18 #include <boost/config.hpp> 19 19 20 #ifdef BOOST_ HAS_DECLSPEC20 #ifdef BOOST_SYMBOL_EXPORT 21 21 # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SIGNALS_DYN_LINK) 22 22 # ifdef BOOST_SIGNALS_SOURCE 23 # define BOOST_SIGNALS_DECL __declspec(dllexport)23 # define BOOST_SIGNALS_DECL BOOST_SYMBOL_EXPORT 24 24 # else 25 # define BOOST_SIGNALS_DECL __declspec(dllimport)25 # define BOOST_SIGNALS_DECL BOOST_SYMBOL_IMPORT 26 26 # endif // BOOST_SIGNALS_SOURCE 27 27 # endif // DYN_LINK 28 #endif // BOOST_ HAS_DECLSPEC28 #endif // BOOST_SYMBOL_EXPORT 29 29 30 30 #ifndef BOOST_SIGNALS_DECL 31 31 # define BOOST_SIGNALS_DECL -
home/hunold/packages/boost/boost/system/config.hpp
31 31 //# error Dynamic linking Boost.System does not work for Borland; use static linking instead 32 32 //# endif 33 33 34 #ifdef BOOST_ HAS_DECLSPEC// defined in config system34 #ifdef BOOST_SYMBOL_EXPORT // defined in config system 35 35 // we need to import/export our code only if the user has specifically 36 36 // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost 37 37 // libraries to be dynamically linked, or BOOST_SYSTEM_DYN_LINK … … 39 39 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK) 40 40 // export if this is our own source, otherwise import: 41 41 #ifdef BOOST_SYSTEM_SOURCE 42 # define BOOST_SYSTEM_DECL __declspec(dllexport)42 # define BOOST_SYSTEM_DECL BOOST_SYMBOL_EXPORT 43 43 #else 44 # define BOOST_SYSTEM_DECL __declspec(dllimport)44 # define BOOST_SYSTEM_DECL BOOST_SYMBOL_IMPORT 45 45 #endif // BOOST_SYSTEM_SOURCE 46 46 #endif // DYN_LINK 47 #endif // BOOST_ HAS_DECLSPEC47 #endif // BOOST_SYMBOL_EXPORT 48 48 // 49 49 // if BOOST_SYSTEM_DECL isn't defined yet define it now: 50 50 #ifndef BOOST_SYSTEM_DECL -
home/hunold/packages/boost/boost/test/detail/config.hpp
84 84 #if defined(BOOST_TEST_DYN_LINK) 85 85 # define BOOST_TEST_ALTERNATIVE_INIT_API 86 86 87 # if defined(BOOST_ HAS_DECLSPEC) && defined(BOOST_TEST_DYN_LINK)87 # if defined(BOOST_SYMBOL_EXPORT) && defined(BOOST_TEST_DYN_LINK) 88 88 # ifdef BOOST_TEST_SOURCE 89 # define BOOST_TEST_DECL __declspec(dllexport)89 # define BOOST_TEST_DECL BOOST_SYMBOL_EXPORT 90 90 # else 91 # define BOOST_TEST_DECL __declspec(dllimport)91 # define BOOST_TEST_DECL BOOST_SYMBOL_IMPORT 92 92 # endif // BOOST_TEST_SOURCE 93 # endif // BOOST_ HAS_DECLSPEC93 # endif // BOOST_SYMBOL_EXPORT 94 94 #endif // BOOST_TEST_DYN_LINK 95 95 96 96 -
home/hunold/packages/boost/boost/thread/detail/config.hpp
45 45 # endif 46 46 #endif 47 47 48 #if defined(BOOST_ HAS_DECLSPEC)48 #if defined(BOOST_SYMBOL_EXPORT) 49 49 # if defined(BOOST_THREAD_BUILD_DLL) //Build dll 50 # define BOOST_THREAD_DECL __declspec(dllexport)50 # define BOOST_THREAD_DECL BOOST_SYMBOL_EXPORT 51 51 # elif defined(BOOST_THREAD_USE_DLL) //Use dll 52 # define BOOST_THREAD_DECL __declspec(dllimport)52 # define BOOST_THREAD_DECL BOOST_SYMBOL_IMPORT 53 53 # else 54 54 # define BOOST_THREAD_DECL 55 55 # endif 56 56 #else 57 57 # define BOOST_THREAD_DECL 58 #endif // BOOST_ HAS_DECLSPEC58 #endif // BOOST_SYMBOL_EXPORT 59 59 60 60 // 61 61 // Automatically link to the correct build variant where possible. … … 89 89 90 90 // Change Log: 91 91 // 22 Jan 05 Roland Schwarz (speedsnail) 92 // Usage of BOOST_ HAS_DECLSPECmacro.92 // Usage of BOOST_SYMBOL_EXPORT macro. 93 93 // Default again is static lib usage. 94 94 // BOOST_DYN_LINK only defined when autolink included. -
home/hunold/packages/boost/boost/wave/wave_config.hpp
402 402 403 403 /////////////////////////////////////////////////////////////////////////////// 404 404 // Set up dll import/export options 405 #if defined(BOOST_ HAS_DECLSPEC) && \405 #if defined(BOOST_SYMBOL_EXPORT) && \ 406 406 (defined(BOOST_WAVE_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && \ 407 407 !defined(BOOST_WAVE_STATIC_LINK) 408 408 409 409 #if defined(BOOST_WAVE_SOURCE) 410 #define BOOST_WAVE_DECL __declspec(dllexport)410 #define BOOST_WAVE_DECL BOOST_SYMBOL_EXPORT 411 411 #define BOOST_WAVE_BUILD_DLL 412 412 #else 413 #define BOOST_WAVE_DECL __declspec(dllimport)413 #define BOOST_WAVE_DECL BOOST_SYMBOL_IMPORT 414 414 #endif 415 415 416 416 #endif // building a shared library