From 8530fd8c4ce661d0e7856e46d6d9e2f2aced2b0a Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 23 Dec 2012 12:22:28 +0000 Subject: [PATCH] Fixed compilation on PGI. [SVN r82184] --- include/boost/atomic/atomic.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/atomic/atomic.hpp b/include/boost/atomic/atomic.hpp index b7c2492..479e16c 100644 --- a/include/boost/atomic/atomic.hpp +++ b/include/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