intel.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. Copyright Redshift Software, Inc. 2008-2013
  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. #ifndef BOOST_PREDEF_COMPILER_INTEL_H
  8. #define BOOST_PREDEF_COMPILER_INTEL_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /*`
  12. [heading `BOOST_COMP_INTEL`]
  13. [@http://en.wikipedia.org/wiki/Intel_C%2B%2B Intel C/C++] compiler.
  14. Version number available as major, minor, and patch.
  15. [table
  16. [[__predef_symbol__] [__predef_version__]]
  17. [[`__INTEL_COMPILER`] [__predef_detection__]]
  18. [[`__ICL`] [__predef_detection__]]
  19. [[`__ICC`] [__predef_detection__]]
  20. [[`__ECC`] [__predef_detection__]]
  21. [[`__INTEL_COMPILER`] [V.R.P]]
  22. ]
  23. */
  24. #define BOOST_COMP_INTEL BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || \
  26. defined(__ECC)
  27. # undef BOOST_COMP_INTEL
  28. # if !defined(BOOST_COMP_INTEL) && defined(__INTEL_COMPILER)
  29. # define BOOST_COMP_INTEL BOOST_PREDEF_MAKE_10_VRP(__INTEL_COMPILER)
  30. # endif
  31. # if !defined(BOOST_COMP_INTEL)
  32. # define BOOST_COMP_INTEL BOOST_VERSION_NUMBER_AVAILABLE
  33. # endif
  34. #endif
  35. #if BOOST_COMP_INTEL
  36. # define BOOST_COMP_INTEL_AVAILABLE
  37. #endif
  38. #define BOOST_COMP_INTEL_NAME "Intel C/C++"
  39. #include <boost/predef/detail/test.h>
  40. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_INTEL,BOOST_COMP_INTEL_NAME)
  41. #endif