1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/thread/detail/config.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,95 @@
1.4 +// Copyright (C) 2001-2003
1.5 +// William E. Kempf
1.6 +//
1.7 +// Distributed under the Boost Software License, Version 1.0. (See accompanying
1.8 +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
1.9 +
1.10 +#ifndef BOOST_THREAD_CONFIG_WEK01032003_HPP
1.11 +#define BOOST_THREAD_CONFIG_WEK01032003_HPP
1.12 +
1.13 +#include <boost/config.hpp>
1.14 +#include <boost/detail/workaround.hpp>
1.15 +
1.16 +#if BOOST_WORKAROUND(__BORLANDC__, < 0x600)
1.17 +# pragma warn -8008 // Condition always true/false
1.18 +# pragma warn -8080 // Identifier declared but never used
1.19 +# pragma warn -8057 // Parameter never used
1.20 +# pragma warn -8066 // Unreachable code
1.21 +#endif
1.22 +
1.23 +// insist on threading support being available:
1.24 +#include <boost/config/requires_threads.hpp>
1.25 +
1.26 +// compatibility with the rest of Boost's auto-linking code:
1.27 +#if defined(BOOST_THREAD_DYN_DLL) || defined(BOOST_ALL_DYN_LINK)
1.28 +# undef BOOST_THREAD_USE_LIB
1.29 +# define BOOST_THREAD_USE_DLL
1.30 +#endif
1.31 +
1.32 +#if defined(BOOST_THREAD_BUILD_DLL) //Build dll
1.33 +#elif defined(BOOST_THREAD_BUILD_LIB) //Build lib
1.34 +#elif defined(BOOST_THREAD_USE_DLL) //Use dll
1.35 +#elif defined(BOOST_THREAD_USE_LIB) //Use lib
1.36 +#else //Use default
1.37 +# if defined(BOOST_HAS_WINTHREADS)
1.38 +# if defined(BOOST_MSVC) || defined(BOOST_INTEL_WIN)
1.39 + //For compilers supporting auto-tss cleanup
1.40 + //with Boost.Threads lib, use Boost.Threads lib
1.41 +# define BOOST_THREAD_USE_LIB
1.42 +# else
1.43 + //For compilers not yet supporting auto-tss cleanup
1.44 + //with Boost.Threads lib, use Boost.Threads dll
1.45 +# define BOOST_THREAD_USE_DLL
1.46 +# endif
1.47 +# else
1.48 +# define BOOST_THREAD_USE_LIB
1.49 +# endif
1.50 +#endif
1.51 +
1.52 +#if defined(BOOST_HAS_DECLSPEC)
1.53 +# if defined(BOOST_THREAD_BUILD_DLL) //Build dll
1.54 +# define BOOST_THREAD_DECL __declspec(dllexport)
1.55 +# elif defined(BOOST_THREAD_USE_DLL) //Use dll
1.56 +# define BOOST_THREAD_DECL __declspec(dllimport)
1.57 +# else
1.58 +# define BOOST_THREAD_DECL
1.59 +# endif
1.60 +#else
1.61 +# define BOOST_THREAD_DECL
1.62 +#endif // BOOST_HAS_DECLSPEC
1.63 +
1.64 +//
1.65 +// Automatically link to the correct build variant where possible.
1.66 +//
1.67 +#if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_THREAD_NO_LIB) && !defined(BOOST_THREAD_BUILD_DLL) && !defined(BOOST_THREAD_BUILD_LIB)
1.68 +//
1.69 +// Tell the autolink to link dynamically, this will get undef'ed by auto_link.hpp
1.70 +// once it's done with it:
1.71 +//
1.72 +#if defined(BOOST_THREAD_USE_DLL)
1.73 +# define BOOST_DYN_LINK
1.74 +#endif
1.75 +//
1.76 +// Set the name of our library, this will get undef'ed by auto_link.hpp
1.77 +// once it's done with it:
1.78 +//
1.79 +#if defined(BOOST_THREAD_LIB_NAME)
1.80 +# define BOOST_LIB_NAME BOOST_THREAD_LIB_NAME
1.81 +#else
1.82 +# define BOOST_LIB_NAME boost_thread
1.83 +#endif
1.84 +//
1.85 +// If we're importing code from a dll, then tell auto_link.hpp about it:
1.86 +//
1.87 +// And include the header that does the work:
1.88 +//
1.89 +#include <boost/config/auto_link.hpp>
1.90 +#endif // auto-linking disabled
1.91 +
1.92 +#endif // BOOST_THREAD_CONFIG_WEK1032003_HPP
1.93 +
1.94 +// Change Log:
1.95 +// 22 Jan 05 Roland Schwarz (speedsnail)
1.96 +// Usage of BOOST_HAS_DECLSPEC macro.
1.97 +// Default again is static lib usage.
1.98 +// BOOST_DYN_LINK only defined when autolink included.