1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/config/requires_threads.hpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,92 @@
1.4 +// (C) Copyright John Maddock 2003.
1.5 +// Use, modification and distribution are subject to the
1.6 +// Boost Software License, Version 1.0. (See accompanying file
1.7 +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
1.8 +
1.9 +
1.10 +#ifndef BOOST_CONFIG_REQUIRES_THREADS_HPP
1.11 +#define BOOST_CONFIG_REQUIRES_THREADS_HPP
1.12 +
1.13 +#ifndef BOOST_CONFIG_HPP
1.14 +# include <boost/config.hpp>
1.15 +#endif
1.16 +
1.17 +#if defined(BOOST_DISABLE_THREADS)
1.18 +
1.19 +//
1.20 +// special case to handle versions of gcc which don't currently support threads:
1.21 +//
1.22 +#if defined(__GNUC__) && ((__GNUC__ < 3) || (__GNUC_MINOR__ <= 3) || !defined(BOOST_STRICT_CONFIG))
1.23 +//
1.24 +// this is checked up to gcc 3.3:
1.25 +//
1.26 +#if defined(__sgi) || defined(__hpux)
1.27 +# error "Multi-threaded programs are not supported by gcc on HPUX or Irix (last checked with gcc 3.3)"
1.28 +#endif
1.29 +
1.30 +#endif
1.31 +
1.32 +# error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
1.33 +
1.34 +#elif !defined(BOOST_HAS_THREADS)
1.35 +
1.36 +# if defined __COMO__
1.37 +// Comeau C++
1.38 +# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -D_MT (Windows) or -D_REENTRANT (Unix)"
1.39 +
1.40 +#elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
1.41 +// Intel
1.42 +#ifdef _WIN32
1.43 +# error "Compiler threading support is not turned on. Please set the correct command line options for threading: either /MT /MTd /MD or /MDd"
1.44 +#else
1.45 +# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -openmp"
1.46 +#endif
1.47 +
1.48 +# elif defined __GNUC__
1.49 +// GNU C++:
1.50 +# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)"
1.51 +
1.52 +#elif defined __sgi
1.53 +// SGI MIPSpro C++
1.54 +# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -D_SGI_MP_SOURCE"
1.55 +
1.56 +#elif defined __DECCXX
1.57 +// Compaq Tru64 Unix cxx
1.58 +# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread"
1.59 +
1.60 +#elif defined __BORLANDC__
1.61 +// Borland
1.62 +# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -tWM"
1.63 +
1.64 +#elif defined __MWERKS__
1.65 +// Metrowerks CodeWarrior
1.66 +# error "Compiler threading support is not turned on. Please set the correct command line options for threading: either -runtime sm, -runtime smd, -runtime dm, or -runtime dmd"
1.67 +
1.68 +#elif defined __SUNPRO_CC
1.69 +// Sun Workshop Compiler C++
1.70 +# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -mt"
1.71 +
1.72 +#elif defined __HP_aCC
1.73 +// HP aCC
1.74 +# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -mt"
1.75 +
1.76 +#elif defined(__IBMCPP__)
1.77 +// IBM Visual Age
1.78 +# error "Compiler threading support is not turned on. Please compile the code with the xlC_r compiler"
1.79 +
1.80 +#elif defined _MSC_VER
1.81 +// Microsoft Visual C++
1.82 +//
1.83 +// Must remain the last #elif since some other vendors (Metrowerks, for
1.84 +// example) also #define _MSC_VER
1.85 +# error "Compiler threading support is not turned on. Please set the correct command line options for threading: either /MT /MTd /MD or /MDd"
1.86 +
1.87 +#else
1.88 +
1.89 +# error "Compiler threading support is not turned on. Please consult your compiler's documentation for the appropriate options to use"
1.90 +
1.91 +#endif // compilers
1.92 +
1.93 +#endif // BOOST_HAS_THREADS
1.94 +
1.95 +#endif // BOOST_CONFIG_REQUIRES_THREADS_HPP