Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:04:35

0001 //  (C) Copyright John Maddock 2003. 
0002 //  Use, modification and distribution are subject to the 
0003 //  Boost Software License, Version 1.0. (See accompanying file 
0004 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0005 
0006 
0007 #ifndef BOOST_CONFIG_REQUIRES_THREADS_HPP
0008 #define BOOST_CONFIG_REQUIRES_THREADS_HPP
0009 
0010 #ifndef BOOST_CONFIG_HPP
0011 #  include <boost/config.hpp>
0012 #endif
0013 
0014 #if defined(BOOST_DISABLE_THREADS)
0015 
0016 //
0017 // special case to handle versions of gcc which don't currently support threads:
0018 //
0019 #if defined(__GNUC__) && ((__GNUC__ < 3) || (__GNUC_MINOR__ <= 3) || !defined(BOOST_STRICT_CONFIG))
0020 //
0021 // this is checked up to gcc 3.3:
0022 //
0023 #if defined(__sgi) || defined(__hpux)
0024 #  error "Multi-threaded programs are not supported by gcc on HPUX or Irix (last checked with gcc 3.3)"
0025 #endif
0026 
0027 #endif
0028 
0029 #  error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
0030 
0031 #elif !defined(BOOST_HAS_THREADS)
0032 
0033 # if defined __COMO__
0034 //  Comeau C++
0035 #   error "Compiler threading support is not turned on. Please set the correct command line options for threading: -D_MT (Windows) or -D_REENTRANT (Unix)"
0036 
0037 #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
0038 //  Intel
0039 #ifdef _WIN32
0040 #  error "Compiler threading support is not turned on. Please set the correct command line options for threading: either /MT /MTd /MD or /MDd"
0041 #else
0042 #   error "Compiler threading support is not turned on. Please set the correct command line options for threading: -openmp"
0043 #endif
0044 
0045 # elif defined __GNUC__
0046 //  GNU C++:
0047 #   error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)"
0048 
0049 #elif defined __sgi
0050 //  SGI MIPSpro C++
0051 #   error "Compiler threading support is not turned on. Please set the correct command line options for threading: -D_SGI_MP_SOURCE"
0052 
0053 #elif defined __DECCXX
0054 //  Compaq Tru64 Unix cxx
0055 #   error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread"
0056 
0057 #elif defined BOOST_BORLANDC
0058 //  Borland
0059 #   error "Compiler threading support is not turned on. Please set the correct command line options for threading: -tWM"
0060 
0061 #elif defined  __MWERKS__
0062 //  Metrowerks CodeWarrior
0063 #   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"
0064 
0065 #elif defined  __SUNPRO_CC
0066 //  Sun Workshop Compiler C++
0067 #   error "Compiler threading support is not turned on. Please set the correct command line options for threading: -mt"
0068 
0069 #elif defined __HP_aCC
0070 //  HP aCC
0071 #   error "Compiler threading support is not turned on. Please set the correct command line options for threading: -mt"
0072 
0073 #elif defined(__IBMCPP__)
0074 //  IBM Visual Age
0075 #   error "Compiler threading support is not turned on. Please compile the code with the xlC_r compiler"
0076 
0077 #elif defined _MSC_VER
0078 //  Microsoft Visual C++
0079 //
0080 //  Must remain the last #elif since some other vendors (Metrowerks, for
0081 //  example) also #define _MSC_VER
0082 #  error "Compiler threading support is not turned on. Please set the correct command line options for threading: either /MT /MTd /MD or /MDd"
0083 
0084 #else
0085 
0086 #  error "Compiler threading support is not turned on.  Please consult your compiler's documentation for the appropriate options to use"
0087 
0088 #endif // compilers
0089 
0090 #endif // BOOST_HAS_THREADS
0091 
0092 #endif // BOOST_CONFIG_REQUIRES_THREADS_HPP