Skip to content

Commit

Permalink
Update Include/cpython/pyatomic.h
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
colesbury and vstinner authored Aug 23, 2023
1 parent 0474e2f commit 462c20a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Include/cpython/pyatomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 462c20a

Please sign in to comment.