From a4cdc6072cafccc8bd7d3c4a4458bf72ff68272c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Dziepak?= Date: Mon, 25 Aug 2014 15:44:12 +0200 Subject: [PATCH] build: remove B_USE_BUILTIN_ATOMIC_FUNCTIONS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No reason not to use GCC atomic support on non-x86 archs. Signed-off-by: Paweł Dziepak --- headers/os/support/SupportDefs.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/headers/os/support/SupportDefs.h b/headers/os/support/SupportDefs.h index b8633345da..7e47018178 100644 --- a/headers/os/support/SupportDefs.h +++ b/headers/os/support/SupportDefs.h @@ -215,8 +215,7 @@ extern void* get_stack_frame(void); /* Use the built-in atomic functions, if requested and available. */ -#if defined(B_USE_BUILTIN_ATOMIC_FUNCTIONS) && __GNUC__ > 4 \ - || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) static inline void @@ -321,8 +320,7 @@ atomic_get64(int64* value) } -#else // B_USE_BUILTIN_ATOMIC_FUNCTIONS && __GNUC__ > 4 - // || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) +#else // __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) #ifdef __cplusplus extern "C" {