2010-05-22 20:20:04 +00:00
|
|
|
/*
|
2015-07-01 17:19:29 -05:00
|
|
|
Copyright Rene Rivera 2008-2015
|
2010-05-22 20:20:04 +00:00
|
|
|
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)
|
|
|
|
*/
|
2008-04-04 18:47:29 +00:00
|
|
|
|
2010-02-25 16:59:10 +00:00
|
|
|
#ifndef BOOST_PREDEF_COMPILER_INTEL_H
|
|
|
|
#define BOOST_PREDEF_COMPILER_INTEL_H
|
2008-04-04 18:47:29 +00:00
|
|
|
|
2010-02-25 16:59:10 +00:00
|
|
|
#include <boost/predef/version_number.h>
|
2011-11-19 03:46:41 +00:00
|
|
|
#include <boost/predef/make.h>
|
2008-04-04 18:47:29 +00:00
|
|
|
|
2011-11-30 05:54:23 +00:00
|
|
|
/*`
|
2012-07-15 03:37:23 +00:00
|
|
|
[heading `BOOST_COMP_INTEL`]
|
2011-11-30 05:54:23 +00:00
|
|
|
|
2011-12-15 03:48:37 +00:00
|
|
|
[@http://en.wikipedia.org/wiki/Intel_C%2B%2B Intel C/C++] compiler.
|
2011-11-30 05:54:23 +00:00
|
|
|
Version number available as major, minor, and patch.
|
2012-07-15 03:37:23 +00:00
|
|
|
|
|
|
|
[table
|
|
|
|
[[__predef_symbol__] [__predef_version__]]
|
|
|
|
|
2013-01-10 23:23:37 -06:00
|
|
|
[[`__INTEL_COMPILER`] [__predef_detection__]]
|
|
|
|
[[`__ICL`] [__predef_detection__]]
|
|
|
|
[[`__ICC`] [__predef_detection__]]
|
|
|
|
[[`__ECC`] [__predef_detection__]]
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2017-01-03 22:07:48 -06:00
|
|
|
[[`__INTEL_COMPILER`] [V.R]]
|
|
|
|
[[`__INTEL_COMPILER` and `__INTEL_COMPILER_UPDATE`] [V.R.P]]
|
2012-07-15 03:37:23 +00:00
|
|
|
]
|
2011-11-30 05:54:23 +00:00
|
|
|
*/
|
|
|
|
|
2013-01-18 21:25:30 -06:00
|
|
|
#define BOOST_COMP_INTEL BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
2008-04-04 18:47:29 +00:00
|
|
|
|
|
|
|
#if defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || \
|
|
|
|
defined(__ECC)
|
2017-01-03 22:07:48 -06:00
|
|
|
# if !defined(BOOST_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER) && defined(__INTEL_COMPILER_UPDATE)
|
|
|
|
# define BOOST_COMP_INTEL_DETECTION BOOST_VERSION_NUMBER( \
|
|
|
|
BOOST_VERSION_NUMBER_MAJOR(BOOST_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)), \
|
|
|
|
BOOST_VERSION_NUMBER_MINOR(BOOST_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)), \
|
|
|
|
__INTEL_COMPILER_UPDATE)
|
|
|
|
# endif
|
2014-01-16 15:50:19 -06:00
|
|
|
# if !defined(BOOST_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER)
|
2017-01-03 22:07:48 -06:00
|
|
|
# define BOOST_COMP_INTEL_DETECTION BOOST_PREDEF_MAKE_10_VVRR(__INTEL_COMPILER)
|
2012-07-15 03:37:23 +00:00
|
|
|
# endif
|
2014-01-16 15:50:19 -06:00
|
|
|
# if !defined(BOOST_COMP_INTEL_DETECTION)
|
|
|
|
# define BOOST_COMP_INTEL_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
2013-01-18 21:25:30 -06:00
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2014-01-16 15:50:19 -06:00
|
|
|
#ifdef BOOST_COMP_INTEL_DETECTION
|
|
|
|
# if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
|
|
|
|
# define BOOST_COMP_INTEL_EMULATED BOOST_COMP_INTEL_DETECTION
|
|
|
|
# else
|
|
|
|
# undef BOOST_COMP_INTEL
|
|
|
|
# define BOOST_COMP_INTEL BOOST_COMP_INTEL_DETECTION
|
|
|
|
# endif
|
2013-01-18 21:25:30 -06:00
|
|
|
# define BOOST_COMP_INTEL_AVAILABLE
|
2014-01-16 15:50:19 -06:00
|
|
|
# include <boost/predef/detail/comp_detected.h>
|
2008-04-04 18:47:29 +00:00
|
|
|
#endif
|
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#define BOOST_COMP_INTEL_NAME "Intel C/C++"
|
|
|
|
|
2015-06-29 18:49:33 -05:00
|
|
|
#endif
|
|
|
|
|
2011-11-19 03:46:41 +00:00
|
|
|
#include <boost/predef/detail/test.h>
|
2012-07-15 03:37:23 +00:00
|
|
|
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_INTEL,BOOST_COMP_INTEL_NAME)
|
|
|
|
|
2014-01-16 15:50:19 -06:00
|
|
|
#ifdef BOOST_COMP_INTEL_EMULATED
|
|
|
|
#include <boost/predef/detail/test.h>
|
|
|
|
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_INTEL_EMULATED,BOOST_COMP_INTEL_NAME)
|
|
|
|
#endif
|