From: Twaik Yont <9674930+twaik@users.noreply.github.com> When building sqlite3 for PE with clang, MSVC_VERSION may select the _ReadWriteBarrier() path, but the intrinsic is not declared in this translation unit. Clang supports the GCC __sync_synchronize() builtin, so use that path for clang as well. Signed-off-by: Twaik Yont <9674930+twaik@users.noreply.github.com> --- libs/sqlite3/sqlite3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sqlite3/sqlite3.c b/libs/sqlite3/sqlite3.c index facea8f6807..7c83edf2646 100644 --- a/libs/sqlite3/sqlite3.c +++ b/libs/sqlite3/sqlite3.c @@ -30706,7 +30706,7 @@ static int SQLITE_APICALL winMutexNotheld(sqlite3_mutex *p){ SQLITE_PRIVATE void SQLITE_APICALL sqlite3MemoryBarrier(void){ #if defined(SQLITE_MEMORY_BARRIER) SQLITE_MEMORY_BARRIER; -#elif defined(__GNUC__) +#elif defined(__GNUC__) || defined(__clang__) __sync_synchronize(); #elif MSVC_VERSION>=1400 _ReadWriteBarrier(); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10936