2
0
mirror of https://github.com/boostorg/atomic.git synced 2026-02-20 01:22:08 +00:00

Fixed compilation on PGI.

[SVN r82184]
This commit is contained in:
Andrey Semashev
2012-12-23 12:22:28 +00:00
parent ec58a5893a
commit 8530fd8c4c

View File

@@ -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__) \
@@ -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