diff options
author | drh <> | 2021-07-05 18:37:37 +0000 |
---|---|---|
committer | drh <> | 2021-07-05 18:37:37 +0000 |
commit | a612c1c9bccae286f3bcd938f70dbbaa106e62ad (patch) | |
tree | c3cb17ca14b58499c630a19dfcb1814cb920361b /src/sqliteInt.h | |
parent | 0f56f891dd8f7e27295f52b4abaef207624f8782 (diff) | |
download | sqlite-a612c1c9bccae286f3bcd938f70dbbaa106e62ad.tar.gz sqlite-a612c1c9bccae286f3bcd938f70dbbaa106e62ad.zip |
Add the ATOMIC_INTRINSICS compile-time output output. Move sqlite3Int.h
in front of ctime.c so that default values that are not overridden are
shown in PRAGMA compile-time option output.
FossilOrigin-Name: e306952690bfb140e2c404a74b05ff2d070c487f7e52c62d62a004505fba0e15
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 442128adc..23eccd8fc 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -215,9 +215,11 @@ # define __has_extension(x) 0 /* compatibility with non-clang compilers */ #endif #if GCC_VERSION>=4007000 || __has_extension(c_atomic) +# define SQLITE_ATOMIC_INTRINSICS 1 # define AtomicLoad(PTR) __atomic_load_n((PTR),__ATOMIC_RELAXED) # define AtomicStore(PTR,VAL) __atomic_store_n((PTR),(VAL),__ATOMIC_RELAXED) #else +# define SQLITE_ATOMIC_INTRINSICS 0 # define AtomicLoad(PTR) (*(PTR)) # define AtomicStore(PTR,VAL) (*(PTR) = (VAL)) #endif |