Skip to content

Commit c964f73

Browse files
authored
Merge pull request libgit2#5664 from lhchavez/define-non-threadsafe-git-load
Define `git___load` when building with `-DTHREADSAFE=OFF`
2 parents a027efb + fa3daa8 commit c964f73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/thread-utils.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,11 @@ GIT_INLINE(volatile void *) git___swap(
311311
return old;
312312
}
313313

314+
GIT_INLINE(volatile void *) git___load(void * volatile *ptr)
315+
{
316+
return *ptr;
317+
}
318+
314319
#ifdef GIT_ARCH_64
315320

316321
GIT_INLINE(int64_t) git_atomic64_add(git_atomic64 *a, int64_t addend)

0 commit comments

Comments
 (0)