File indexing completed on 2024-11-15 09:04:35
0001
0002
0003
0004
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
0018
0019 #if defined(__GNUC__) && ((__GNUC__ < 3) || (__GNUC_MINOR__ <= 3) || !defined(BOOST_STRICT_CONFIG))
0020
0021
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
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
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
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
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
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
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
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
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
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
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
0079
0080
0081
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
0089
0090 #endif
0091
0092 #endif