From 462c20a4aa0b72803f2af894c537dad3dec9336f Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Wed, 23 Aug 2023 17:15:49 -0400 Subject: [PATCH] Update Include/cpython/pyatomic.h Co-authored-by: Victor Stinner --- Include/cpython/pyatomic.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Include/cpython/pyatomic.h b/Include/cpython/pyatomic.h index 0fe3653292d44b..871a8ddea8007f 100644 --- a/Include/cpython/pyatomic.h +++ b/Include/cpython/pyatomic.h @@ -371,13 +371,13 @@ _Py_atomic_fence_release(void); #ifndef _Py_USE_GCC_BUILTIN_ATOMICS -#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) -#define _Py_USE_GCC_BUILTIN_ATOMICS 1 -#elif defined(__clang__) -#if __has_builtin(__atomic_load) -#define _Py_USE_GCC_BUILTIN_ATOMICS 1 -#endif -#endif +# if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) +# define _Py_USE_GCC_BUILTIN_ATOMICS 1 +# elif defined(__clang__) +# if __has_builtin(__atomic_load) +# define _Py_USE_GCC_BUILTIN_ATOMICS 1 +# endif +# endif #endif #if _Py_USE_GCC_BUILTIN_ATOMICS