Files

81 lines
2.9 KiB
C

/*
Copyright Rene Rivera 2008-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef ACTIV_BOOST_PREDEF_COMPILER_INTEL_H
#define ACTIV_BOOST_PREDEF_COMPILER_INTEL_H
#include <ActivBoost/predef/version_number.h>
#include <ActivBoost/predef/make.h>
/* tag::reference[]
= `ACTIV_BOOST_COMP_INTEL`
http://en.wikipedia.org/wiki/Intel_C%2B%2B[Intel C/{CPP}] compiler.
Version number available as major, minor, and patch.
[options="header"]
|===
| {predef_symbol} | {predef_version}
| `+__INTEL_COMPILER+` | {predef_detection}
| `+__ICL+` | {predef_detection}
| `+__ICC+` | {predef_detection}
| `+__ECC+` | {predef_detection}
| `+__INTEL_COMPILER+` | V.R
| `+__INTEL_COMPILER+` and `+__INTEL_COMPILER_UPDATE+` | V.R.P
|===
*/ // end::reference[]
#define ACTIV_BOOST_COMP_INTEL ACTIV_BOOST_VERSION_NUMBER_NOT_AVAILABLE
#if defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || \
defined(__ECC)
/* tag::reference[]
NOTE: Because of an Intel mistake in the release version numbering when
`__INTEL_COMPILER` is `9999` it is detected as version 12.1.0.
*/ // end::reference[]
# if !defined(ACTIV_BOOST_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER) && (__INTEL_COMPILER == 9999)
# define ACTIV_BOOST_COMP_INTEL_DETECTION ACTIV_BOOST_VERSION_NUMBER(12,1,0)
# endif
# if !defined(ACTIV_BOOST_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE)
# define ACTIV_BOOST_COMP_INTEL_DETECTION ACTIV_BOOST_VERSION_NUMBER( \
ACTIV_BOOST_VERSION_NUMBER_MAJOR(ACTIV_BOOST_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)), \
ACTIV_BOOST_VERSION_NUMBER_MINOR(ACTIV_BOOST_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)), \
__INTEL_COMPILER_UPDATE)
# endif
# if !defined(ACTIV_BOOST_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER)
# define ACTIV_BOOST_COMP_INTEL_DETECTION ACTIV_BOOST_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)
# endif
# if !defined(ACTIV_BOOST_COMP_INTEL_DETECTION)
# define ACTIV_BOOST_COMP_INTEL_DETECTION ACTIV_BOOST_VERSION_NUMBER_AVAILABLE
# endif
#endif
#ifdef ACTIV_BOOST_COMP_INTEL_DETECTION
# if defined(ACTIV_BOOST_PREDEF_DETAIL_COMP_DETECTED)
# define ACTIV_BOOST_COMP_INTEL_EMULATED ACTIV_BOOST_COMP_INTEL_DETECTION
# else
# undef ACTIV_BOOST_COMP_INTEL
# define ACTIV_BOOST_COMP_INTEL ACTIV_BOOST_COMP_INTEL_DETECTION
# endif
# define ACTIV_BOOST_COMP_INTEL_AVAILABLE
# include <ActivBoost/predef/detail/comp_detected.h>
#endif
#define ACTIV_BOOST_COMP_INTEL_NAME "Intel C/C++"
#endif
#include <ActivBoost/predef/detail/test.h>
ACTIV_BOOST_PREDEF_DECLARE_TEST(ACTIV_BOOST_COMP_INTEL,ACTIV_BOOST_COMP_INTEL_NAME)
#ifdef ACTIV_BOOST_COMP_INTEL_EMULATED
#include <ActivBoost/predef/detail/test.h>
ACTIV_BOOST_PREDEF_DECLARE_TEST(ACTIV_BOOST_COMP_INTEL_EMULATED,ACTIV_BOOST_COMP_INTEL_NAME)
#endif