Ticket #2114: boost_visibility.diff

File boost_visibility.diff, 24.5 KB (added by Jürgen Hunold, 13 years ago)

Fixed patch using existing headers

  • home/hunold/packages/boost/boost/config/compiler/gcc.hpp

     
    101101#  endif
    102102#endif
    103103
     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//
    104119// C++0x features not implemented in any GCC version
    105120//
    106121#define BOOST_NO_CONSTEXPR
  • home/hunold/packages/boost/boost/config/platform/win32.hpp

     
    2525#  define BOOST_HAS_DECLSPEC
    2626#endif
    2727
     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
    2839#if defined(__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 2) || ((__MINGW32_MAJOR_VERSION == 2) && (__MINGW32_MINOR_VERSION >= 0)))
    2940#  define BOOST_HAS_STDINT_H
    3041#  define __STDC_LIMIT_MACROS
  • home/hunold/packages/boost/boost/archive/detail/basic_config.hpp

     
    2222
    2323#include <boost/config.hpp>
    2424
    25 #ifdef BOOST_HAS_DECLSPEC // defined in config system
     25#ifdef BOOST_SYMBOL_EXPORT // defined in config system
    2626// we need to import/export our code only if the user has specifically
    2727// asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
    2828// libraries to be dynamically linked, or BOOST_ARCHIVE_DYN_LINK
     
    3030#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_ARCHIVE_DYN_LINK)
    3131// export if this is our own source, otherwise import:
    3232#ifdef BOOST_ARCHIVE_SOURCE
    33 # define BOOST_ARCHIVE_DECL __declspec(dllexport)
     33# define BOOST_ARCHIVE_DECL BOOST_SYMBOL_EXPORT
    3434#else
    35 # define BOOST_ARCHIVE_DECL __declspec(dllimport)
     35# define BOOST_ARCHIVE_DECL BOOST_SYMBOL_IMPORT
    3636#endif  // BOOST_ARCHIVE_SOURCE
    3737#endif  // DYN_LINK
    38 #endif  // BOOST_HAS_DECLSPEC
     38#endif  // BOOST_SYMBOL_EXPORT
    3939//
    4040// if BOOST_ARCHIVE_DECL isn't defined yet define it now:
    4141#ifndef BOOST_ARCHIVE_DECL
  • home/hunold/packages/boost/boost/archive/detail/decl.hpp

     
    2424#include <boost/config.hpp>
    2525#include <boost/preprocessor/facilities/empty.hpp>
    2626
    27 #if defined(BOOST_HAS_DECLSPEC)
     27#if defined(BOOST_SYMBOL_EXPORT)
    2828    #if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK))
    2929        #if defined(BOOST_ARCHIVE_SOURCE)
    3030            #if defined(__BORLANDC__)
    3131            #define BOOST_ARCHIVE_DECL(T) T __export
    3232            #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T)  T __export
    3333            #else
    34             #define BOOST_ARCHIVE_DECL(T) __declspec(dllexport) T
    35             #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T)  __declspec(dllexport) T
     34            #define BOOST_ARCHIVE_DECL(T) BOOST_SYMBOL_EXPORT T
     35            #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T)  BOOST_SYMBOL_EXPORT T
    3636            #endif
    3737        #else
    3838            #if defined(__BORLANDC__)
    3939            #define BOOST_ARCHIVE_DECL(T) T __import
    4040            #else
    41             #define BOOST_ARCHIVE_DECL(T) __declspec(dllimport) T
     41            #define BOOST_ARCHIVE_DECL(T) BOOST_SYMBOL_IMPORT T
    4242            #endif
    4343        #endif
    4444        #if defined(BOOST_WARCHIVE_SOURCE)
     
    4646            #define BOOST_WARCHIVE_DECL(T) T __export
    4747            #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) T __export
    4848            #else
    49             #define BOOST_WARCHIVE_DECL(T) __declspec(dllexport) T
    50             #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) __declspec(dllexport) T
     49            #define BOOST_WARCHIVE_DECL(T) BOOST_SYMBOL_EXPORT T
     50            #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) BOOST_SYMBOL_EXPORT T
    5151            #endif
    5252        #else
    5353            #if defined(__BORLANDC__)
    5454            #define BOOST_WARCHIVE_DECL(T) T __import
    5555            #else
    56             #define BOOST_WARCHIVE_DECL(T) __declspec(dllimport) T
     56            #define BOOST_WARCHIVE_DECL(T) BOOST_SYMBOL_IMPORT T
    5757            #endif
    5858        #endif
    5959        #if !defined(BOOST_WARCHIVE_SOURCE) && !defined(BOOST_ARCHIVE_SOURCE)
    6060            #if defined(__BORLANDC__)
    6161            #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) T __import
    6262            #else
    63             #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) __declspec(dllimport) T
     63            #define BOOST_ARCHIVE_OR_WARCHIVE_DECL(T) BOOST_SYMBOL_IMPORT T
    6464            #endif
    6565        #endif
    6666    #endif
    67 #endif // BOOST_HAS_DECLSPEC
     67#endif // BOOST_SYMBOL_EXPORT
    6868
    6969#if ! defined(BOOST_ARCHIVE_DECL)
    7070    #define BOOST_ARCHIVE_DECL(T) T
  • home/hunold/packages/boost/boost/serialization/config.hpp

     
    2727    #undef BOOST_SERIALIZATION_DECL
    2828#endif
    2929
    30 #ifdef BOOST_HAS_DECLSPEC // defined in config system
     30#ifdef BOOST_SYMBOL_EXPORT // defined in config system
    3131// we need to import/export our code only if the user has specifically
    3232// asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
    3333// libraries to be dynamically linked, or BOOST_SERIALIZATION_DYN_LINK
     
    4141        #if defined(__BORLANDC__)
    4242            #define BOOST_SERIALIZATION_DECL(T) T __export
    4343        #else
    44             #define BOOST_SERIALIZATION_DECL(T) __declspec(dllexport) T
     44            #define BOOST_SERIALIZATION_DECL(T) BOOST_SYMBOL_EXPORT T
    4545        #endif
    4646    #else
    4747        #if defined(__BORLANDC__)
    4848            #define BOOST_SERIALIZATION_DECL(T) T __import
    4949        #else
    50             #define BOOST_SERIALIZATION_DECL(T) __declspec(dllimport) T
     50            #define BOOST_SERIALIZATION_DECL(T) BOOST_SYMBOL_IMPORT T
    5151        #endif
    5252    #endif // defined(BOOST_SERIALIZATION_SOURCE)
    5353#endif // defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK)
    54 #endif // BOOST_HAS_DECLSPEC
     54#endif // BOOST_SYMBOL_EXPORT
    5555
    5656// if BOOST_SERIALIZATION_DECL isn't defined yet define it now:
    5757#ifndef BOOST_SERIALIZATION_DECL
  • home/hunold/packages/boost/boost/python/detail/config.hpp

     
    6767#endif
    6868
    6969#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)
    7871#     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
    8075#        define BOOST_PYTHON_BUILD_DLL
    8176#     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
    8380#     endif
    84 #     define BOOST_PYTHON_DECL_FORWARD
    85 #     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_DLL
    90 #     else
    91 #        define BOOST_PYTHON_DECL __declspec(dllimport)
    92 #     endif
    9381#  endif
    94 
    9582#endif
    9683
    9784#ifndef BOOST_PYTHON_DECL
     
    9986#endif
    10087
    10188#ifndef BOOST_PYTHON_DECL_FORWARD
    102 #  define BOOST_PYTHON_DECL_FORWARD BOOST_PYTHON_DECL
     89#  define BOOST_PYTHON_DECL_FORWARD
    10390#endif
    10491
    10592#ifndef BOOST_PYTHON_DECL_EXCEPTION
    106 #  define BOOST_PYTHON_DECL_EXCEPTION BOOST_PYTHON_DECL
     93#  define BOOST_PYTHON_DECL_EXCEPTION
    10794#endif
    10895
    10996#if BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042))
  • home/hunold/packages/boost/boost/date_time/compiler_config.hpp

     
    118118 *
    119119 */
    120120
    121 #ifdef BOOST_HAS_DECLSPEC // defined in config system
     121#ifdef BOOST_SYMBOL_EXPORT // defined in config system
    122122   // we need to import/export our code only if the user has specifically
    123123   // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
    124124   // libraries to be dynamically linked, or BOOST_DATE_TIME_DYN_LINK
     
    126126#  if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_DATE_TIME_DYN_LINK)
    127127      // export if this is our own source, otherwise import:
    128128#     ifdef BOOST_DATE_TIME_SOURCE
    129 #       define BOOST_DATE_TIME_DECL __declspec(dllexport)
     129#       define BOOST_DATE_TIME_DECL BOOST_SYMBOL_EXPORT
    130130#     else
    131 #       define BOOST_DATE_TIME_DECL __declspec(dllimport)
     131#       define BOOST_DATE_TIME_DECL BOOST_SYMBOL_IMPORT
    132132#     endif  // BOOST_DATE_TIME_SOURCE
    133133#  endif  // DYN_LINK
    134 #endif  // BOOST_HAS_DECLSPEC
     134#endif  // BOOST_SYMBOL_EXPORT
    135135//
    136136// if BOOST_WHATEVER_DECL isn't defined yet define it now:
    137137#ifndef BOOST_DATE_TIME_DECL
  • home/hunold/packages/boost/boost/filesystem/config.hpp

     
    7070#    error Dynamic linking Boost.Filesystem does not work for Borland; use static linking instead
    7171#  endif
    7272
    73 #ifdef BOOST_HAS_DECLSPEC // defined in config system
     73#ifdef BOOST_SYMBOL_EXPORT // defined in config system
    7474// we need to import/export our code only if the user has specifically
    7575// asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
    7676// libraries to be dynamically linked, or BOOST_FILESYSTEM_DYN_LINK
     
    7878#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)
    7979// export if this is our own source, otherwise import:
    8080#ifdef BOOST_FILESYSTEM_SOURCE
    81 # define BOOST_FILESYSTEM_DECL __declspec(dllexport)
     81# define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_EXPORT
    8282#else
    83 # define BOOST_FILESYSTEM_DECL __declspec(dllimport)
     83# define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_IMPORT
    8484#endif  // BOOST_FILESYSTEM_SOURCE
    8585#endif  // DYN_LINK
    86 #endif  // BOOST_HAS_DECLSPEC
     86#endif  // BOOST_SYMBOL_EXPORT
    8787//
    8888// if BOOST_FILESYSTEM_DECL isn't defined yet define it now:
    8989#ifndef BOOST_FILESYSTEM_DECL
  • home/hunold/packages/boost/boost/graph/graphviz.hpp

     
    2525#include <boost/property_map/dynamic_property_map.hpp>
    2626#include <boost/graph/overloading.hpp>
    2727
    28 #ifdef BOOST_HAS_DECLSPEC
     28#ifdef BOOST_SYMBOL_EXPORT
    2929#  if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_GRAPH_DYN_LINK)
    3030#    ifdef BOOST_GRAPH_SOURCE
    31 #      define BOOST_GRAPH_DECL __declspec(dllexport)
     31#      define BOOST_GRAPH_DECL BOOST_SYMBOL_EXPORT
    3232#    else
    33 #      define BOOST_GRAPH_DECL __declspec(dllimport)
     33#      define BOOST_GRAPH_DECL BOOST_SYMBOL_IMPORT
    3434#    endif  // BOOST_GRAPH_SOURCE
    3535#  endif  // DYN_LINK
    36 #endif  // BOOST_HAS_DECLSPEC
     36#endif  // BOOST_SYMBOL_EXPORT
    3737
    3838#ifndef BOOST_GRAPH_DECL
    3939#  define BOOST_GRAPH_DECL
  • home/hunold/packages/boost/boost/iostreams/detail/config/dyn_link.hpp

     
    2020
    2121//------------------Enable dynamic linking on windows-------------------------//
    2222
    23 #ifdef BOOST_HAS_DECLSPEC
     23#ifdef BOOST_SYMBOL_EXPORT
    2424# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_IOSTREAMS_DYN_LINK)
    2525#  ifdef BOOST_IOSTREAMS_SOURCE
    26 #   define BOOST_IOSTREAMS_DECL __declspec(dllexport)
     26#   define BOOST_IOSTREAMS_DECL BOOST_SYMBOL_EXPORT
    2727#  else
    28 #   define BOOST_IOSTREAMS_DECL __declspec(dllimport)
     28#   define BOOST_IOSTREAMS_DECL BOOST_SYMBOL_IMPORT
    2929#  endif 
    3030# endif 
    3131#endif
  • home/hunold/packages/boost/boost/math/tr1.hpp

     
    2020
    2121#endif // __cplusplus
    2222
    23 #ifdef BOOST_HAS_DECLSPEC // defined in config system
     23#ifdef BOOST_SYMBOL_EXPORT // defined in config system
    2424// we need to import/export our code only if the user has specifically
    2525// asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
    2626// libraries to be dynamically linked, or BOOST_MATH_TR1_DYN_LINK
     
    2828#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_MATH_TR1_DYN_LINK)
    2929// export if this is our own source, otherwise import:
    3030#ifdef BOOST_MATH_TR1_SOURCE
    31 # define BOOST_MATH_TR1_DECL __declspec(dllexport)
     31# define BOOST_MATH_TR1_DECL BOOST_SYMBOL_EXPORT
    3232#else
    33 # define BOOST_MATH_TR1_DECL __declspec(dllimport)
     33# define BOOST_MATH_TR1_DECL BOOST_SYMBOL_IMPORT
    3434#endif  // BOOST_MATH_TR1_SOURCE
    3535#endif  // DYN_LINK
    36 #endif  // BOOST_HAS_DECLSPEC
     36#endif  // BOOST_SYMBOL_EXPORT
    3737//
    3838// if BOOST_MATH_TR1_DECL isn't defined yet define it now:
    3939#ifndef BOOST_MATH_TR1_DECL
  • home/hunold/packages/boost/boost/mpi/config.hpp

     
    8080 *                                                                           *
    8181 *****************************************************************************/
    8282
    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)
    8484#  if defined(BOOST_MPI_SOURCE)
    85 #     define BOOST_MPI_DECL __declspec(dllexport)
     85#     define BOOST_MPI_DECL BOOST_SYMBOL_EXPORT
    8686#     define BOOST_MPI_BUILD_DLL
    8787#  else
    88 #     define BOOST_MPI_DECL __declspec(dllimport)
     88#     define BOOST_MPI_DECL BOOST_SYMBOL_IMPORT
    8989#  endif
    9090#endif
    9191
  • home/hunold/packages/boost/boost/mpi/python/config.hpp

     
    2020 *                                                                           *
    2121 *****************************************************************************/
    2222
    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)
    2424#  if defined(BOOST_MPI_PYTHON_SOURCE)
    25 #     define BOOST_MPI_PYTHON_DECL __declspec(dllexport)
     25#     define BOOST_MPI_PYTHON_DECL BOOST_SYMBOL_EXPORT
    2626#     define BOOST_MPI_PYTHON_BUILD_DLL
    2727#  else
    28 #     define BOOST_MPI_PYTHON_DECL __declspec(dllimport)
     28#     define BOOST_MPI_PYTHON_DECL BOOST_SYMBOL_IMPORT
    2929#  endif
    3030#endif
    3131
  • home/hunold/packages/boost/boost/program_options/config.hpp

     
    3535
    3636///////////////////////////////////////////////////////////////////////////////
    3737// Windows DLL suport
    38 #ifdef BOOST_HAS_DECLSPEC
     38#ifdef BOOST_SYMBOL_EXPORT
    3939#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_PROGRAM_OPTIONS_DYN_LINK)
    4040// export if this is our own source, otherwise import:
    4141#ifdef BOOST_PROGRAM_OPTIONS_SOURCE
    42 # define BOOST_PROGRAM_OPTIONS_DECL __declspec(dllexport)
     42# define BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_EXPORT
    4343#else
    44 # define BOOST_PROGRAM_OPTIONS_DECL __declspec(dllimport)
     44# define BOOST_PROGRAM_OPTIONS_DECL BOOST_SYMBOL_IMPORT
    4545#endif  // BOOST_PROGRAM_OPTIONS_SOURCE
    4646#endif  // DYN_LINK
    47 #endif  // BOOST_HAS_DECLSPEC
     47#endif  // BOOST_SYMBOL_EXPORT
    4848
    4949#ifndef BOOST_PROGRAM_OPTIONS_DECL
    5050#define BOOST_PROGRAM_OPTIONS_DECL
  • home/hunold/packages/boost/boost/regex/config.hpp

     
    166166#  endif
    167167#  ifdef _DLL
    168168#     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>;
    170170#  endif
    171171#  ifdef BOOST_MSVC
    172172#     pragma warning(pop)
     
    180180 *
    181181 ****************************************************************************/
    182182
    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)
    184184#  if defined(BOOST_REGEX_SOURCE)
    185 #     define BOOST_REGEX_DECL __declspec(dllexport)
     185#     define BOOST_REGEX_DECL BOOST_SYMBOL_EXPORT
    186186#     define BOOST_REGEX_BUILD_DLL
    187187#  else
    188 #     define BOOST_REGEX_DECL __declspec(dllimport)
     188#     define BOOST_REGEX_DECL BOOST_SYMBOL_IMPORT
    189189#  endif
    190190#endif
    191191
  • home/hunold/packages/boost/boost/signals/detail/config.hpp

     
    1717
    1818#include <boost/config.hpp>
    1919
    20 #ifdef BOOST_HAS_DECLSPEC
     20#ifdef BOOST_SYMBOL_EXPORT
    2121#  if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SIGNALS_DYN_LINK)
    2222#    ifdef BOOST_SIGNALS_SOURCE
    23 #      define BOOST_SIGNALS_DECL __declspec(dllexport)
     23#      define BOOST_SIGNALS_DECL BOOST_SYMBOL_EXPORT
    2424#    else
    25 #      define BOOST_SIGNALS_DECL __declspec(dllimport)
     25#      define BOOST_SIGNALS_DECL BOOST_SYMBOL_IMPORT
    2626#    endif  // BOOST_SIGNALS_SOURCE
    2727#  endif  // DYN_LINK
    28 #endif  // BOOST_HAS_DECLSPEC
     28#endif  // BOOST_SYMBOL_EXPORT
    2929
    3030#ifndef BOOST_SIGNALS_DECL
    3131#  define BOOST_SIGNALS_DECL
  • home/hunold/packages/boost/boost/system/config.hpp

     
    3131//#    error Dynamic linking Boost.System does not work for Borland; use static linking instead
    3232//#  endif
    3333
    34 #ifdef BOOST_HAS_DECLSPEC // defined in config system
     34#ifdef BOOST_SYMBOL_EXPORT // defined in config system
    3535// we need to import/export our code only if the user has specifically
    3636// asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
    3737// libraries to be dynamically linked, or BOOST_SYSTEM_DYN_LINK
     
    3939#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK)
    4040// export if this is our own source, otherwise import:
    4141#ifdef BOOST_SYSTEM_SOURCE
    42 # define BOOST_SYSTEM_DECL __declspec(dllexport)
     42# define BOOST_SYSTEM_DECL BOOST_SYMBOL_EXPORT
    4343#else
    44 # define BOOST_SYSTEM_DECL __declspec(dllimport)
     44# define BOOST_SYSTEM_DECL BOOST_SYMBOL_IMPORT
    4545#endif  // BOOST_SYSTEM_SOURCE
    4646#endif  // DYN_LINK
    47 #endif  // BOOST_HAS_DECLSPEC
     47#endif  // BOOST_SYMBOL_EXPORT
    4848//
    4949// if BOOST_SYSTEM_DECL isn't defined yet define it now:
    5050#ifndef BOOST_SYSTEM_DECL
  • home/hunold/packages/boost/boost/test/detail/config.hpp

     
    8484#if defined(BOOST_TEST_DYN_LINK)
    8585#  define BOOST_TEST_ALTERNATIVE_INIT_API
    8686
    87 #  if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_TEST_DYN_LINK)
     87#  if defined(BOOST_SYMBOL_EXPORT) && defined(BOOST_TEST_DYN_LINK)
    8888#    ifdef BOOST_TEST_SOURCE
    89 #      define BOOST_TEST_DECL __declspec(dllexport)
     89#      define BOOST_TEST_DECL BOOST_SYMBOL_EXPORT
    9090#    else
    91 #      define BOOST_TEST_DECL __declspec(dllimport)
     91#      define BOOST_TEST_DECL BOOST_SYMBOL_IMPORT
    9292#    endif  // BOOST_TEST_SOURCE
    93 #  endif  // BOOST_HAS_DECLSPEC
     93#  endif  // BOOST_SYMBOL_EXPORT
    9494#endif  // BOOST_TEST_DYN_LINK
    9595
    9696
  • home/hunold/packages/boost/boost/thread/detail/config.hpp

     
    4545#   endif
    4646#endif
    4747
    48 #if defined(BOOST_HAS_DECLSPEC)
     48#if defined(BOOST_SYMBOL_EXPORT)
    4949#   if defined(BOOST_THREAD_BUILD_DLL) //Build dll
    50 #       define BOOST_THREAD_DECL __declspec(dllexport)
     50#       define BOOST_THREAD_DECL BOOST_SYMBOL_EXPORT
    5151#   elif defined(BOOST_THREAD_USE_DLL) //Use dll
    52 #       define BOOST_THREAD_DECL __declspec(dllimport)
     52#       define BOOST_THREAD_DECL BOOST_SYMBOL_IMPORT
    5353#   else
    5454#       define BOOST_THREAD_DECL
    5555#   endif
    5656#else
    5757#   define BOOST_THREAD_DECL
    58 #endif // BOOST_HAS_DECLSPEC
     58#endif // BOOST_SYMBOL_EXPORT
    5959
    6060//
    6161// Automatically link to the correct build variant where possible.
     
    8989
    9090// Change Log:
    9191//   22 Jan 05 Roland Schwarz (speedsnail)
    92 //      Usage of BOOST_HAS_DECLSPEC macro.
     92//      Usage of BOOST_SYMBOL_EXPORT macro.
    9393//      Default again is static lib usage.
    9494//      BOOST_DYN_LINK only defined when autolink included.
  • home/hunold/packages/boost/boost/wave/wave_config.hpp

     
    402402
    403403///////////////////////////////////////////////////////////////////////////////
    404404//  Set up dll import/export options
    405 #if defined(BOOST_HAS_DECLSPEC) && \
     405#if defined(BOOST_SYMBOL_EXPORT) && \
    406406    (defined(BOOST_WAVE_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && \
    407407    !defined(BOOST_WAVE_STATIC_LINK)
    408408   
    409409#if defined(BOOST_WAVE_SOURCE)
    410 #define BOOST_WAVE_DECL __declspec(dllexport)
     410#define BOOST_WAVE_DECL BOOST_SYMBOL_EXPORT
    411411#define BOOST_WAVE_BUILD_DLL
    412412#else
    413 #define BOOST_WAVE_DECL __declspec(dllimport)
     413#define BOOST_WAVE_DECL BOOST_SYMBOL_IMPORT
    414414#endif
    415415
    416416#endif // building a shared library