mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[CRT] Do not define builtin functions if not needed
This commit is contained in:
parent
7197620b89
commit
8aea84dab7
1 changed files with 4 additions and 0 deletions
|
@ -663,16 +663,20 @@ __INTRIN_INLINE short _InterlockedIncrement16(volatile short * lpAddend)
|
|||
#endif
|
||||
|
||||
#if defined(__x86_64__)
|
||||
#if !HAS_BUILTIN(_InterlockedDecrement64)
|
||||
__INTRIN_INLINE long long _InterlockedDecrement64(volatile long long * lpAddend)
|
||||
{
|
||||
return _InterlockedExchangeAdd64(lpAddend, -1) - 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !HAS_BUILTIN(_InterlockedIncrement64)
|
||||
__INTRIN_INLINE long long _InterlockedIncrement64(volatile long long * lpAddend)
|
||||
{
|
||||
return _InterlockedExchangeAdd64(lpAddend, 1) + 1;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) > 40100 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue