| Index: nspr/pr/include/pratom.h
|
| diff --git a/nspr/pr/include/pratom.h b/nspr/pr/include/pratom.h
|
| index 5846bd3813de22e153379ed595b0546967c92bac..9dbe0fad33930daacefeb621149a34d0115e8ded 100644
|
| --- a/nspr/pr/include/pratom.h
|
| +++ b/nspr/pr/include/pratom.h
|
| @@ -81,10 +81,7 @@ NSPR_API(PRInt32) PR_AtomicAdd(PRInt32 *ptr, PRInt32 val);
|
| #if defined(_WIN32) && !defined(_WIN32_WCE) && \
|
| (!defined(_MSC_VER) || (_MSC_VER >= 1310))
|
|
|
| -long __cdecl _InterlockedIncrement(long volatile *Addend);
|
| -long __cdecl _InterlockedDecrement(long volatile *Addend);
|
| -long __cdecl _InterlockedExchange(long volatile *Target, long Value);
|
| -long __cdecl _InterlockedExchangeAdd(long volatile *Addend, long Value);
|
| +#include <intrin.h>
|
|
|
| #ifdef _MSC_VER
|
| #pragma intrinsic(_InterlockedIncrement)
|
| @@ -107,7 +104,7 @@ long __cdecl _InterlockedExchangeAdd(long volatile *Addend, long Value);
|
| ((defined(__i386__) && \
|
| defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)) || \
|
| defined(__ia64__) || defined(__x86_64__) || \
|
| - (defined(__powerpc__) && !defined(__powerpc64__)) || \
|
| + defined(__powerpc__) || \
|
| (defined(__arm__) && \
|
| defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)) || \
|
| defined(__aarch64__) || defined(__alpha))))
|
|
|