|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82184 - branches/release/boost/atomic
From: andrey.semashev_at_[hidden]
Date: 2012-12-23 07:22:28
Author: andysem
Date: 2012-12-23 07:22:28 EST (Sun, 23 Dec 2012)
New Revision: 82184
URL: http://svn.boost.org/trac/boost/changeset/82184
Log:
Fixed compilation on PGI.
Text files modified:
branches/release/boost/atomic/atomic.hpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Modified: branches/release/boost/atomic/atomic.hpp
==============================================================================
--- branches/release/boost/atomic/atomic.hpp (original)
+++ branches/release/boost/atomic/atomic.hpp 2012-12-23 07:22:28 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