Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82183 - trunk/boost/atomic
From: andrey.semashev_at_[hidden]
Date: 2012-12-23 07:19:47


Author: andysem
Date: 2012-12-23 07:19:45 EST (Sun, 23 Dec 2012)
New Revision: 82183
URL: http://svn.boost.org/trac/boost/changeset/82183

Log:
Fixed compilation on PGI.
Text files modified:
   trunk/boost/atomic/atomic.hpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/boost/atomic/atomic.hpp
==============================================================================
--- trunk/boost/atomic/atomic.hpp (original)
+++ trunk/boost/atomic/atomic.hpp 2012-12-23 07:19:45 EST (Sun, 23 Dec 2012)
@@ -154,6 +154,9 @@
 typedef atomic<std::size_t> atomic_size_t;
 typedef atomic<std::ptrdiff_t> atomic_ptrdiff_t;
 
+// PGI seems to not support intptr_t/uintptr_t properly. BOOST_HAS_STDINT_H is not defined for this compiler by Boost.Config.
+#if !defined(__PGIC__)
+
 #if defined(BOOST_WINDOWS) \
     || (defined(_XOPEN_UNIX) && (_XOPEN_UNIX+0 > 0)) \
     || defined(__CYGWIN__) \
@@ -170,6 +173,7 @@
 #endif
 #endif
 
+#endif
 
 #ifndef BOOST_ATOMIC_FLAG_LOCK_FREE
 #define BOOST_ATOMIC_FLAG_LOCK_FREE 0


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