pgi.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_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. # undef BOOST_COMP_PGI
  23. # if !defined(BOOST_COMP_PGI) && (defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__))
  24. # define BOOST_COMP_PGI BOOST_VERSION_NUMBER(__PGIC__,__PGIC_MINOR__,__PGIC_PATCHLEVEL__)
  25. # endif
  26. # if !defined(BOOST_COMP_PGI)
  27. # define BOOST_COMP_PGI BOOST_VERSION_NUMBER_AVAILABLE
  28. # endif
  29. #endif
  30. #if BOOST_COMP_PGI
  31. # define BOOST_COMP_PGI_AVAILABLE
  32. #endif
  33. #define BOOST_COMP_PGI_NAME "Portland Group C/C++"
  34. #include <boost/predef/detail/test.h>
  35. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_PGI,BOOST_COMP_PGI_NAME)
  36. #endif