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:
Dmitry Timoshkov 2024-04-26 20:30:12 +03:00 committed by Alexandre Julliard
parent 86b26a9eef
commit a113adedea

View file

@ -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 *);