Skip to content

Commit

Permalink
Fixed compilation on PGI.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.boost.org/svn/boost/trunk@82183 b8fc166d-592f-0410-95f2-cb63ce0dd405
  • Loading branch information
andysem committed Dec 23, 2012
1 parent cb91f8e commit 20bdb3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boost/atomic/atomic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ typedef atomic<uintmax_t> atomic_uintmax_t;
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__) \
Expand All @@ -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
Expand Down

0 comments on commit 20bdb3f

Please sign in to comment.