Add a new config macro BOOST_INTEL

[SVN r18504]
This commit is contained in:
Guillaume Melquiond
2003-05-23 07:03:21 +00:00
parent 269e334a5f
commit d1f3f6f38e
4 changed files with 18 additions and 5 deletions

View File

@ -1169,6 +1169,12 @@ user code.</p>
Microsoft Visual C++, as opposed to one of the many other
compilers that also define _MSC_VER.</td>
</tr>
<tr>
<td valign="top">BOOST_INTEL</td>
<td valign="top">&lt;boost/config.hpp&gt;</td>
<td valign="top">Defined if the compiler is an Intel compiler,
takes the same value as the compiler version macro.</td>
</tr>
<tr>
<td>BOOST_DINKUMWARE_STDLIB</td>
<td>&lt;boost/config.hpp&gt;</td>

View File

@ -9,14 +9,19 @@
#include "boost/config/compiler/common_edg.hpp"
#ifdef __ICL
# define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(__ICL)
#if defined(__INTEL_COMPILER)
# define BOOST_INTEL_CXX_VERSION __INTEL_COMPILER
#elif defined(__ICL)
# define BOOST_INTEL_CXX_VERSION __ICL
#else
# define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(__ICC)
#elif defined(__ICC)
# define BOOST_INTEL_CXX_VERSION __ICC
#elif defined(__ECC)
# define BOOST_INTEL_CXX_VERSION __ECC
#endif
#define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
#define BOOST_INTEL BOOST_INTEL_CXX_VERSION
#if (BOOST_INTEL_CXX_VERSION <= 500) && defined(_MSC_VER)
# define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
# define BOOST_NO_TEMPLATE_TEMPLATES

View File

@ -38,7 +38,7 @@
// Borland
# define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
#elif defined(__ICL) || defined(__ICC)
#elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
// Intel
# define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"

View File

@ -260,6 +260,7 @@ void print_compiler_macros()
// misc compilers not covered so far:
PRINT_MACRO(__ICC);
PRINT_MACRO(__ICL);
PRINT_MACRO(__ECC);
PRINT_MACRO(__INTEL_COMPILER);
PRINT_MACRO(__USLC__);
PRINT_MACRO(__DECCXX);
@ -870,6 +871,7 @@ void print_boost_macros()
PRINT_MACRO(BOOST_HAS_TWO_ARG_USE_FACET);
PRINT_MACRO(BOOST_HAS_UNISTD_H);
PRINT_MACRO(BOOST_HAS_WINTHREADS);
PRINT_MACRO(BOOST_INTEL);
PRINT_MACRO(BOOST_MSVC);
PRINT_MACRO(BOOST_MSVC_STD_ITERATOR);
PRINT_MACRO(BOOST_MSVC6_MEMBER_TEMPLATES);