Boost logo

Boost-Commit :

From: kbelco_at_[hidden]
Date: 2008-03-21 17:04:37


Author: noel_belcourt
Date: 2008-03-21 17:04:36 EDT (Fri, 21 Mar 2008)
New Revision: 43781
URL: http://svn.boost.org/trac/boost/changeset/43781

Log:
pgi-7.1 has testable version macros, yeah!

Text files modified:
   trunk/boost/config/compiler/pgi.hpp | 8 ++++++++
   1 files changed, 8 insertions(+), 0 deletions(-)

Modified: trunk/boost/config/compiler/pgi.hpp
==============================================================================
--- trunk/boost/config/compiler/pgi.hpp (original)
+++ trunk/boost/config/compiler/pgi.hpp 2008-03-21 17:04:36 EDT (Fri, 21 Mar 2008)
@@ -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?


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk