Imported Upstream version 1.64.0
[platform/upstream/boost.git] / boost / predef / compiler / intel.h
1 /*
2 Copyright Rene Rivera 2008-2015
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt)
6 */
7
8 #ifndef BOOST_PREDEF_COMPILER_INTEL_H
9 #define BOOST_PREDEF_COMPILER_INTEL_H
10
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
13
14 /*`
15 [heading `BOOST_COMP_INTEL`]
16
17 [@http://en.wikipedia.org/wiki/Intel_C%2B%2B Intel C/C++] compiler.
18 Version number available as major, minor, and patch.
19
20 [table
21     [[__predef_symbol__] [__predef_version__]]
22
23     [[`__INTEL_COMPILER`] [__predef_detection__]]
24     [[`__ICL`] [__predef_detection__]]
25     [[`__ICC`] [__predef_detection__]]
26     [[`__ECC`] [__predef_detection__]]
27
28     [[`__INTEL_COMPILER`] [V.R]]
29     [[`__INTEL_COMPILER` and `__INTEL_COMPILER_UPDATE`] [V.R.P]]
30     ]
31  */
32
33 #define BOOST_COMP_INTEL BOOST_VERSION_NUMBER_NOT_AVAILABLE
34
35 #if defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || \
36     defined(__ECC)
37 #   if !defined(BOOST_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE)
38 #       define BOOST_COMP_INTEL_DETECTION BOOST_VERSION_NUMBER( \
39             BOOST_VERSION_NUMBER_MAJOR(BOOST_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)), \
40             BOOST_VERSION_NUMBER_MINOR(BOOST_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)), \
41             __INTEL_COMPILER_UPDATE)
42 #   endif
43 #   if !defined(BOOST_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER)
44 #       define BOOST_COMP_INTEL_DETECTION BOOST_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)
45 #   endif
46 #   if !defined(BOOST_COMP_INTEL_DETECTION)
47 #       define BOOST_COMP_INTEL_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
48 #   endif
49 #endif
50
51 #ifdef BOOST_COMP_INTEL_DETECTION
52 #   if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
53 #       define BOOST_COMP_INTEL_EMULATED BOOST_COMP_INTEL_DETECTION
54 #   else
55 #       undef BOOST_COMP_INTEL
56 #       define BOOST_COMP_INTEL BOOST_COMP_INTEL_DETECTION
57 #   endif
58 #   define BOOST_COMP_INTEL_AVAILABLE
59 #   include <boost/predef/detail/comp_detected.h>
60 #endif
61
62 #define BOOST_COMP_INTEL_NAME "Intel C/C++"
63
64 #endif
65
66 #include <boost/predef/detail/test.h>
67 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_INTEL,BOOST_COMP_INTEL_NAME)
68
69 #ifdef BOOST_COMP_INTEL_EMULATED
70 #include <boost/predef/detail/test.h>
71 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_INTEL_EMULATED,BOOST_COMP_INTEL_NAME)
72 #endif