forked from boostorg/predef
Initial implementation of exclusive definition of compiler detection
with emulated definitions.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
Copyright Rene Rivera 2008-2014
|
||||
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)
|
||||
@ -33,17 +33,23 @@ Version number available as major, minor, and patch.
|
||||
|
||||
#if defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || \
|
||||
defined(__ECC)
|
||||
# undef BOOST_COMP_INTEL
|
||||
# if !defined(BOOST_COMP_INTEL) && defined(__INTEL_COMPILER)
|
||||
# define BOOST_COMP_INTEL BOOST_PREDEF_MAKE_10_VRP(__INTEL_COMPILER)
|
||||
# if !defined(BOOST_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER)
|
||||
# define BOOST_COMP_INTEL_DETECTION BOOST_PREDEF_MAKE_10_VRP(__INTEL_COMPILER)
|
||||
# endif
|
||||
# if !defined(BOOST_COMP_INTEL)
|
||||
# define BOOST_COMP_INTEL BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# if !defined(BOOST_COMP_INTEL_DETECTION)
|
||||
# define BOOST_COMP_INTEL_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_COMP_INTEL
|
||||
#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
|
||||
# define BOOST_COMP_INTEL_AVAILABLE
|
||||
# include <boost/predef/detail/comp_detected.h>
|
||||
#endif
|
||||
|
||||
#define BOOST_COMP_INTEL_NAME "Intel C/C++"
|
||||
@ -51,5 +57,10 @@ Version number available as major, minor, and patch.
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_INTEL,BOOST_COMP_INTEL_NAME)
|
||||
|
||||
#ifdef BOOST_COMP_INTEL_EMULATED
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_INTEL_EMULATED,BOOST_COMP_INTEL_NAME)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user