pgi.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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_PGI_H
  8. #define BOOST_PREDEF_COMPILER_PGI_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_COMP_PGI`
  13. http://en.wikipedia.org/wiki/The_Portland_Group[Portland Group C/{CPP}] compiler.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `+__PGI+` | {predef_detection}
  18. | `+__PGIC__+`, `+__PGIC_MINOR__+`, `+__PGIC_PATCHLEVEL__+` | V.R.P
  19. |===
  20. */ // end::reference[]
  21. #define BOOST_COMP_PGI BOOST_VERSION_NUMBER_NOT_AVAILABLE
  22. #if defined(__PGI)
  23. # if !defined(BOOST_COMP_PGI_DETECTION) && (defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__))
  24. # define BOOST_COMP_PGI_DETECTION BOOST_VERSION_NUMBER(__PGIC__,__PGIC_MINOR__,__PGIC_PATCHLEVEL__)
  25. # endif
  26. # if !defined(BOOST_COMP_PGI_DETECTION)
  27. # define BOOST_COMP_PGI_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
  28. # endif
  29. #endif
  30. #ifdef BOOST_COMP_PGI_DETECTION
  31. # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
  32. # define BOOST_COMP_PGI_EMULATED BOOST_COMP_PGI_DETECTION
  33. # else
  34. # undef BOOST_COMP_PGI
  35. # define BOOST_COMP_PGI BOOST_COMP_PGI_DETECTION
  36. # endif
  37. # define BOOST_COMP_PGI_AVAILABLE
  38. # include <boost/predef/detail/comp_detected.h>
  39. #endif
  40. #define BOOST_COMP_PGI_NAME "Portland Group C/C++"
  41. #endif
  42. #include <boost/predef/detail/test.h>
  43. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PGI,BOOST_COMP_PGI_NAME)
  44. #ifdef BOOST_COMP_PGI_EMULATED
  45. #include <boost/predef/detail/test.h>
  46. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PGI_EMULATED,BOOST_COMP_PGI_NAME)
  47. #endif