build: remove B_USE_BUILTIN_ATOMIC_FUNCTIONS
No reason not to use GCC atomic support on non-x86 archs. Signed-off-by: Paweł Dziepak <[email protected]>
This commit is contained in:
@@ -215,8 +215,7 @@ extern void* get_stack_frame(void);
|
|||||||
|
|
||||||
/* Use the built-in atomic functions, if requested and available. */
|
/* Use the built-in atomic functions, if requested and available. */
|
||||||
|
|
||||||
#if defined(B_USE_BUILTIN_ATOMIC_FUNCTIONS) && __GNUC__ > 4 \
|
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)
|
||||||
|| (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)
|
|
||||||
|
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
@@ -321,8 +320,7 @@ atomic_get64(int64* value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#else // B_USE_BUILTIN_ATOMIC_FUNCTIONS && __GNUC__ > 4
|
#else // __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)
|
||||||
// || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
Reference in New Issue
Block a user