aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <Dan Kennedy>2021-07-05 17:15:38 +0000
committerdan <Dan Kennedy>2021-07-05 17:15:38 +0000
commit0f56f891dd8f7e27295f52b4abaef207624f8782 (patch)
tree348aa701039871d3b3599de235311cb9b7aa14b4 /src
parent5daf69e5f4277085ed44c76930f777cf415edff3 (diff)
downloadsqlite-0f56f891dd8f7e27295f52b4abaef207624f8782.tar.gz
sqlite-0f56f891dd8f7e27295f52b4abaef207624f8782.zip
Revert [5204c2c4a7b73a64], restoring the old pre-processor logic for determining the availability of the __atomic_store_n()/__atomic_load_n() primitives.
FossilOrigin-Name: e690abb9e4e189c41182ac813115d55d811135013f5ce94ec0c45a547597f8ad
Diffstat (limited to 'src')
-rw-r--r--src/sqliteInt.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index b5fbff645..442128adc 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -214,8 +214,7 @@
#ifndef __has_extension
# define __has_extension(x) 0 /* compatibility with non-clang compilers */
#endif
-#if GCC_VERSION>=4007000 || \
- (__has_extension(c_atomic) && __has_extension(c_atomic_store_n))
+#if GCC_VERSION>=4007000 || __has_extension(c_atomic)
# define AtomicLoad(PTR) __atomic_load_n((PTR),__ATOMIC_RELAXED)
# define AtomicStore(PTR,VAL) __atomic_store_n((PTR),(VAL),__ATOMIC_RELAXED)
#else