imgtools/imglib/boostlibrary/boost/system/config.hpp
changeset 600 6d08f4a05d93
equal deleted inserted replaced
599:fa7a3cc6effd 600:6d08f4a05d93
       
     1 //  boost/system/config.hpp  -------------------------------------------------//
       
     2 
       
     3 //  Copyright Beman Dawes 2003, 2006
       
     4 
       
     5 //  Distributed under the Boost Software License, Version 1.0. (See accompanying
       
     6 //  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
       
     7 
       
     8 //  See http://www.boost.org/libs/system for documentation.
       
     9 
       
    10 #ifndef BOOST_SYSTEM_CONFIG_HPP                  
       
    11 #define BOOST_SYSTEM_CONFIG_HPP
       
    12 
       
    13 #include <boost/config.hpp>
       
    14 
       
    15 //  BOOST_POSIX_API or BOOST_WINDOWS_API specify which API to use.
       
    16 //  If not specified, a sensible default will be applied.
       
    17 
       
    18 # if defined( BOOST_WINDOWS_API ) && defined( BOOST_POSIX_API )
       
    19 #   error both BOOST_WINDOWS_API and BOOST_POSIX_API are defined
       
    20 # elif !defined( BOOST_WINDOWS_API ) && !defined( BOOST_POSIX_API )
       
    21 #   if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__CYGWIN__)
       
    22 #     define BOOST_WINDOWS_API
       
    23 #   else
       
    24 #     define BOOST_POSIX_API 
       
    25 #   endif
       
    26 # endif
       
    27 
       
    28 //  enable dynamic linking on Windows  ---------------------------------------//
       
    29 
       
    30 //#  if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK)) && defined(__BORLANDC__) && defined(__WIN32__)
       
    31 //#    error Dynamic linking Boost.System does not work for Borland; use static linking instead
       
    32 //#  endif
       
    33 
       
    34 #ifdef BOOST_HAS_DECLSPEC // defined in config system
       
    35 // we need to import/export our code only if the user has specifically
       
    36 // asked for it by defining either BOOST_ALL_DYN_LINK if they want all boost
       
    37 // libraries to be dynamically linked, or BOOST_SYSTEM_DYN_LINK
       
    38 // if they want just this one to be dynamically liked:
       
    39 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK)
       
    40 // export if this is our own source, otherwise import:
       
    41 #ifdef BOOST_SYSTEM_SOURCE
       
    42 # define BOOST_SYSTEM_DECL __declspec(dllexport)
       
    43 #else
       
    44 # define BOOST_SYSTEM_DECL __declspec(dllimport)
       
    45 #endif  // BOOST_SYSTEM_SOURCE
       
    46 #endif  // DYN_LINK
       
    47 #endif  // BOOST_HAS_DECLSPEC
       
    48 //
       
    49 // if BOOST_SYSTEM_DECL isn't defined yet define it now:
       
    50 #ifndef BOOST_SYSTEM_DECL
       
    51 #define BOOST_SYSTEM_DECL
       
    52 #endif
       
    53 
       
    54 //  enable automatic library variant selection  ------------------------------// 
       
    55 
       
    56 #if !defined(BOOST_SYSTEM_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_SYSTEM_NO_LIB)
       
    57 //
       
    58 // Set the name of our library, this will get undef'ed by auto_link.hpp
       
    59 // once it's done with it:
       
    60 //
       
    61 #define BOOST_LIB_NAME boost_system
       
    62 //
       
    63 // If we're importing code from a dll, then tell auto_link.hpp about it:
       
    64 //
       
    65 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SYSTEM_DYN_LINK)
       
    66 #  define BOOST_DYN_LINK
       
    67 #endif
       
    68 //
       
    69 // And include the header that does the work:
       
    70 //
       
    71 #include <boost/config/auto_link.hpp>
       
    72 #endif  // auto-linking disabled
       
    73 
       
    74 #endif // BOOST_SYSTEM_CONFIG_HPP
       
    75