From fa3daa8259df6c09a7e075b0b959eabc791f92f9 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Tue, 13 Oct 2020 08:02:59 -0700 Subject: Define `git___load` when building with `-DTHREADSAFE=OFF` This should allow folks that build in non-thread-safe environments to still be able to build the library. Fixes: #5663 --- src/thread-utils.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/thread-utils.h') diff --git a/src/thread-utils.h b/src/thread-utils.h index ecb4909f5..3311672b4 100644 --- a/src/thread-utils.h +++ b/src/thread-utils.h @@ -311,6 +311,11 @@ GIT_INLINE(volatile void *) git___swap( return old; } +GIT_INLINE(volatile void *) git___load(void * volatile *ptr) +{ + return *ptr; +} + #ifdef GIT_ARCH_64 GIT_INLINE(int64_t) git_atomic64_add(git_atomic64 *a, int64_t addend) -- cgit v1.2.1