Fix non-GCC (and non-thread-safe!) case.

This commit is contained in:
Axel Naumann 2014-04-28 15:08:03 +02:00 committed by sftnight
parent e85b873a26
commit 05e3be6503

View File

@ -30,9 +30,9 @@ static int boost__detail__atomic_exchange_and_add( int * pw, int dv )
// *pw += dv;
// return r;
#if defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) )
int r;
#if defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) )
__asm__ __volatile__
(
"lock\n\t"