pgi.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. /*`
  12. [heading `BOOST_COMP_PGI`]
  13. [@http://en.wikipedia.org/wiki/The_Portland_Group Portland Group C/C++] compiler.
  14. [table
  15. [[__predef_symbol__] [__predef_version__]]
  16. [[`__PGI`] [__predef_detection__]]
  17. [[`__PGIC__`, `__PGIC_MINOR__`, `__PGIC_PATCHLEVEL__`] [V.R.P]]
  18. ]
  19. */
  20. #define BOOST_COMP_PGI BOOST_VERSION_NUMBER_NOT_AVAILABLE
  21. #if defined(__PGI)
  22. # if !defined(BOOST_COMP_PGI_DETECTION) && (defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__))
  23. # define BOOST_COMP_PGI_DETECTION BOOST_VERSION_NUMBER(__PGIC__,__PGIC_MINOR__,__PGIC_PATCHLEVEL__)
  24. # endif
  25. # if !defined(BOOST_COMP_PGI_DETECTION)
  26. # define BOOST_COMP_PGI_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
  27. # endif
  28. #endif
  29. #ifdef BOOST_COMP_PGI_DETECTION
  30. # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
  31. # define BOOST_COMP_PGI_EMULATED BOOST_COMP_PGI_DETECTION
  32. # else
  33. # undef BOOST_COMP_PGI
  34. # define BOOST_COMP_PGI BOOST_COMP_PGI_DETECTION
  35. # endif
  36. # define BOOST_COMP_PGI_AVAILABLE
  37. # include <boost/predef/detail/comp_detected.h>
  38. #endif
  39. #define BOOST_COMP_PGI_NAME "Portland Group C/C++"
  40. #endif
  41. #include <boost/predef/detail/test.h>
  42. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PGI,BOOST_COMP_PGI_NAME)
  43. #ifdef BOOST_COMP_PGI_EMULATED
  44. #include <boost/predef/detail/test.h>
  45. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PGI_EMULATED,BOOST_COMP_PGI_NAME)
  46. #endif