diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-10-14 12:35:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 12:35:00 +0100 |
commit | c964f73d3f5a6529bba87c0ad1e484e2a5db87ee (patch) | |
tree | 6d86164753519c566c0a045342dcd8fbb3c9365e | |
parent | a027efbb8dcd01da7eaffc42f9c653a3887ac54c (diff) | |
parent | fa3daa8259df6c09a7e075b0b959eabc791f92f9 (diff) | |
download | libgit2-c964f73d3f5a6529bba87c0ad1e484e2a5db87ee.tar.gz |
Merge pull request #5664 from lhchavez/define-non-threadsafe-git-load
Define `git___load` when building with `-DTHREADSAFE=OFF`
-rw-r--r-- | src/thread-utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
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) |