Compilation fix

This commit is contained in:
Nekotekina 2015-05-27 13:02:29 +03:00
parent 2823953489
commit f14b712f07
2 changed files with 11 additions and 9 deletions

View file

@ -444,6 +444,17 @@ static __forceinline u128 sync_fetch_and_xor(volatile u128* dest, u128 value)
}
}
#if !defined(_MSC_VER)
#define sync_val_compare_and_swap __sync_val_compare_and_swap
#define sync_bool_compare_and_swap __sync_bool_compare_and_swap
#define sync_lock_test_and_set __sync_lock_test_and_set
#define sync_fetch_and_add __sync_fetch_and_add
#define sync_fetch_and_sub __sync_fetch_and_sub
#define sync_fetch_and_or __sync_fetch_and_or
#define sync_fetch_and_and __sync_fetch_and_and
#define sync_fetch_and_xor __sync_fetch_and_xor
#endif
#define re16(val) _byteswap_ushort(val)
#define re32(val) _byteswap_ulong(val)
#define re64(val) _byteswap_uint64(val)

View file

@ -78,15 +78,6 @@ int clock_gettime(int foo, struct timespec *ts);
#endif /* __APPLE__ */
#define sync_val_compare_and_swap __sync_val_compare_and_swap
#define sync_bool_compare_and_swap __sync_bool_compare_and_swap
#define sync_lock_test_and_set __sync_lock_test_and_set
#define sync_fetch_and_add __sync_fetch_and_add
#define sync_fetch_and_sub __sync_fetch_and_sub
#define sync_fetch_and_or __sync_fetch_and_or
#define sync_fetch_and_and __sync_fetch_and_and
#define sync_fetch_and_xor __sync_fetch_and_xor
#endif /* __GNUG__ */
#if defined(_MSC_VER)