intel.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. Copyright Rene Rivera 2008-2015
  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. # if !defined(BOOST_COMP_INTEL_DETECTION) && defined(__INTEL_COMPILER)
  28. # define BOOST_COMP_INTEL_DETECTION BOOST_PREDEF_MAKE_10_VRP(__INTEL_COMPILER)
  29. # endif
  30. # if !defined(BOOST_COMP_INTEL_DETECTION)
  31. # define BOOST_COMP_INTEL_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
  32. # endif
  33. #endif
  34. #ifdef BOOST_COMP_INTEL_DETECTION
  35. # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
  36. # define BOOST_COMP_INTEL_EMULATED BOOST_COMP_INTEL_DETECTION
  37. # else
  38. # undef BOOST_COMP_INTEL
  39. # define BOOST_COMP_INTEL BOOST_COMP_INTEL_DETECTION
  40. # endif
  41. # define BOOST_COMP_INTEL_AVAILABLE
  42. # include <boost/predef/detail/comp_detected.h>
  43. #endif
  44. #define BOOST_COMP_INTEL_NAME "Intel C/C++"
  45. #endif
  46. #include <boost/predef/detail/test.h>
  47. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_INTEL,BOOST_COMP_INTEL_NAME)
  48. #ifdef BOOST_COMP_INTEL_EMULATED
  49. #include <boost/predef/detail/test.h>
  50. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_INTEL_EMULATED,BOOST_COMP_INTEL_NAME)
  51. #endif