Commit fa3daa82 by lhchavez

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
parent 7f4fa178
...@@ -311,6 +311,11 @@ GIT_INLINE(volatile void *) git___swap( ...@@ -311,6 +311,11 @@ GIT_INLINE(volatile void *) git___swap(
return old; return old;
} }
GIT_INLINE(volatile void *) git___load(void * volatile *ptr)
{
return *ptr;
}
#ifdef GIT_ARCH_64 #ifdef GIT_ARCH_64
GIT_INLINE(int64_t) git_atomic64_add(git_atomic64 *a, int64_t addend) GIT_INLINE(int64_t) git_atomic64_add(git_atomic64 *a, int64_t addend)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment