From 20bdb3f441880499417c74f3e14cc9258bd9438d Mon Sep 17 00:00:00 2001 From: andysem Date: Sun, 23 Dec 2012 12:19:45 +0000 Subject: [PATCH] Fixed compilation on PGI. git-svn-id: http://svn.boost.org/svn/boost/trunk@82183 b8fc166d-592f-0410-95f2-cb63ce0dd405 --- boost/atomic/atomic.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boost/atomic/atomic.hpp b/boost/atomic/atomic.hpp index b7c2492e5b2..479e16c5fae 100644 --- a/boost/atomic/atomic.hpp +++ b/boost/atomic/atomic.hpp @@ -154,6 +154,9 @@ typedef atomic atomic_uintmax_t; typedef atomic atomic_size_t; typedef atomic 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 @@ typedef atomic< __UINTPTR_TYPE__ > atomic_uintptr_t; #endif #endif +#endif #ifndef BOOST_ATOMIC_FLAG_LOCK_FREE #define BOOST_ATOMIC_FLAG_LOCK_FREE 0