Skip to content

Commit fa3daa8

Browse files
committed
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: libgit2#5663
1 parent 7f4fa17 commit fa3daa8

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)