]> git.lyx.org Git - lyx.git/blob - boost/boost/config/compiler/intel.hpp
22890ca7cd246dfbfc4440f1d8f9717349789428
[lyx.git] / boost / boost / config / compiler / intel.hpp
1 //  (C) Copyright John Maddock 2001. 
2 //  (C) Copyright Peter Dimov 2001. 
3 //  (C) Copyright Jens Maurer 2001. 
4 //  (C) Copyright David Abrahams 2002 - 2003. 
5 //  (C) Copyright Aleksey Gurtovoy 2002 - 2003. 
6 //  (C) Copyright Guillaume Melquiond 2002 - 2003. 
7 //  (C) Copyright Beman Dawes 2003. 
8 //  (C) Copyright Martin Wille 2003. 
9 //  Use, modification and distribution are subject to the 
10 //  Boost Software License, Version 1.0. (See accompanying file 
11 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
12
13 //  See http://www.boost.org for most recent version.
14
15 //  Intel compiler setup:
16
17 #include "boost/config/compiler/common_edg.hpp"
18
19 #if defined(__INTEL_COMPILER)
20 #  define BOOST_INTEL_CXX_VERSION __INTEL_COMPILER
21 #elif defined(__ICL)
22 #  define BOOST_INTEL_CXX_VERSION __ICL
23 #elif defined(__ICC)
24 #  define BOOST_INTEL_CXX_VERSION __ICC
25 #elif defined(__ECC)
26 #  define BOOST_INTEL_CXX_VERSION __ECC
27 #endif
28
29 #define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
30 #define BOOST_INTEL BOOST_INTEL_CXX_VERSION
31
32 #if (BOOST_INTEL_CXX_VERSION <= 500) && defined(_MSC_VER)
33 #  define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
34 #  define BOOST_NO_TEMPLATE_TEMPLATES
35 #endif
36
37 #if (BOOST_INTEL_CXX_VERSION <= 600) || !defined(BOOST_STRICT_CONFIG)
38
39 #  if defined(_MSC_VER) && (_MSC_VER <= 1300) // added check for <= VC 7 (Peter Dimov)
40
41 // Boost libraries assume strong standard conformance unless otherwise
42 // indicated by a config macro. As configured by Intel, the EDG front-end
43 // requires certain compiler options be set to achieve that strong conformance.
44 // Particularly /Qoption,c,--arg_dep_lookup (reported by Kirk Klobe & Thomas Witt)
45 // and /Zc:wchar_t,forScope. See boost-root/tools/build/intel-win32-tools.jam for
46 // details as they apply to particular versions of the compiler. When the
47 // compiler does not predefine a macro indicating if an option has been set,
48 // this config file simply assumes the option has been set.
49 // Thus BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP will not be defined, even if
50 // the compiler option is not enabled.
51
52 #     define BOOST_NO_SWPRINTF
53 #  endif
54
55 // Void returns, 64 bit integrals don't work when emulating VC 6 (Peter Dimov)
56
57 #  if defined(_MSC_VER) && (_MSC_VER <= 1200)
58 #     define BOOST_NO_VOID_RETURNS
59 #     define BOOST_NO_INTEGRAL_INT64_T
60 #  endif
61
62 #endif
63
64 // See http://aspn.activestate.com/ASPN/Mail/Message/boost/1614864
65 #if BOOST_INTEL_CXX_VERSION < 700
66 #  define BOOST_NO_INTRINSIC_WCHAR_T
67 #else
68 // _WCHAR_T_DEFINED is the Win32 spelling
69 // _WCHAR_T is the Linux spelling
70 #  if !defined(_WCHAR_T_DEFINED) && !defined(_WCHAR_T)
71 #    define BOOST_NO_INTRINSIC_WCHAR_T
72 #  endif
73 #endif
74
75 #if (BOOST_INTEL_CXX_VERSION <= 800) || !defined(BOOST_STRICT_CONFIG)
76 #  define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
77 #endif
78
79 #if _MSC_VER+0 >= 1000
80 #  if _MSC_VER >= 1200
81 #     define BOOST_HAS_MS_INT64
82 #  endif
83 #  define BOOST_NO_SWPRINTF
84 #elif defined(_WIN32)
85 #  define BOOST_DISABLE_WIN32
86 #endif
87
88 // I checked version 6.0 build 020312Z, it implements the NRVO.
89 // Correct this as you find out which version of the compiler
90 // implemented the NRVO first.  (Daniel Frey)
91 #if (BOOST_INTEL_CXX_VERSION >= 600)
92 #  define BOOST_HAS_NRVO
93 #endif
94
95 //
96 // versions check:
97 // we don't support Intel prior to version 5.0:
98 #if BOOST_INTEL_CXX_VERSION < 500
99 #  error "Compiler not supported or configured - please reconfigure"
100 #endif
101 //
102 // last known and checked version:
103 #if (BOOST_INTEL_CXX_VERSION > 800)
104 #  if defined(BOOST_ASSERT_CONFIG)
105 #     error "Unknown compiler version - please run the configure tests and report the results"
106 #  elif defined(_MSC_VER)
107 #     pragma message("Unknown compiler version - please run the configure tests and report the results")
108 #  endif
109 #endif
110
111
112
113
114