<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- sqlite3.c.orig	2025-02-06 07:59:25.000000000 -0600
+++ sqlite3.c	2025-02-08 18:10:04.000000000 -0600
@@ -14287,7 +14287,8 @@
 #ifndef __has_extension
 # define __has_extension(x) 0     /* compatibility with non-clang compilers */
 #endif
-#if GCC_VERSION&gt;=4007000 || __has_extension(c_atomic)
+/* for Xcode 4 (clang &lt; 3.3) the existence of 'atomic' is detected by configure, but it is not fully functional, so key on clang_major &gt; 4 */
+#if (!defined(__clang__) &amp;&amp; ((GCC_VERSION&gt;=4007000) || __has_extension(c_atomic))) || (defined(__clang_major__) &amp;&amp; (__clang_major__ &gt; 4) &amp;&amp; __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)
</pre></body></html>