From a593af70bbd4a3d64761219079954e13e1501b6d Mon Sep 17 00:00:00 2001 From: "K. Noel Belcourt" Date: Fri, 21 Mar 2008 21:04:36 +0000 Subject: [PATCH] pgi-7.1 has testable version macros, yeah! [SVN r43781] --- include/boost/config/compiler/pgi.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/config/compiler/pgi.hpp b/include/boost/config/compiler/pgi.hpp index 491497d4..0f88d38e 100644 --- a/include/boost/config/compiler/pgi.hpp +++ b/include/boost/config/compiler/pgi.hpp @@ -7,6 +7,7 @@ // PGI C++ compiler setup: +#define BOOST_COMPILER_VERSION __PGIC__##__PGIC_MINOR__ #define BOOST_COMPILER "PGI compiler version " BOOST_STRINGIZE(_COMPILER_VERSION) // @@ -15,10 +16,17 @@ // if no threading API is detected. // +#if (__PGIC__ == 7) && (__PGIC_MINOR__ == 1) + #define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL #define BOOST_NO_TWO_PHASE_NAME_LOOKUP #define BOOST_NO_SWPRINTF +#else + +# error "Pgi compiler not configured - please reconfigure" + +#endif // // version check: // probably nothing to do here?