mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
include: Move InterlockedExchangeAdd64() definition before its first usage.
This fixes Wine tests compilation with Visual Studio 10.0. Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
This commit is contained in:
parent
86b26a9eef
commit
a113adedea
1 changed files with 10 additions and 10 deletions
|
@ -6958,16 +6958,6 @@ static FORCEINLINE __int64 InterlockedAnd64( __int64 volatile *dest, __int64 val
|
|||
}
|
||||
#endif
|
||||
|
||||
#if !defined(__i386__) || __has_builtin(_InterlockedDecrement64)
|
||||
#pragma intrinsic(_InterlockedDecrement64)
|
||||
__int64 _InterlockedDecrement64(__int64 volatile *);
|
||||
#else
|
||||
static FORCEINLINE __int64 InterlockedDecrement64( __int64 volatile *dest )
|
||||
{
|
||||
return InterlockedExchangeAdd64( dest, -1 ) - 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(__i386__) || __has_builtin(_InterlockedExchangeAdd64)
|
||||
#pragma intrinsic(_InterlockedExchangeAdd64)
|
||||
__int64 _InterlockedExchangeAdd64(__int64 volatile *, __int64);
|
||||
|
@ -6980,6 +6970,16 @@ static FORCEINLINE __int64 InterlockedExchangeAdd64( __int64 volatile *dest, __i
|
|||
}
|
||||
#endif
|
||||
|
||||
#if !defined(__i386__) || __has_builtin(_InterlockedDecrement64)
|
||||
#pragma intrinsic(_InterlockedDecrement64)
|
||||
__int64 _InterlockedDecrement64(__int64 volatile *);
|
||||
#else
|
||||
static FORCEINLINE __int64 InterlockedDecrement64( __int64 volatile *dest )
|
||||
{
|
||||
return InterlockedExchangeAdd64( dest, -1 ) - 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(__i386__) || __has_builtin(_InterlockedIncrement64)
|
||||
#pragma intrinsic(_InterlockedIncrement64)
|
||||
__int64 _InterlockedIncrement64(__int64 volatile *);
|
||||
|
|
Loading…
Reference in a new issue