mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 20:33:41 +00:00
Fix MSVC warnings when building threads
This commit is contained in:
parent
567fc1d20c
commit
b932ef5b3d
@ -5,7 +5,11 @@
|
|||||||
|
|
||||||
/* Common operations even if threading has been disabled */
|
/* Common operations even if threading has been disabled */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
volatile long val;
|
||||||
|
#else
|
||||||
volatile int val;
|
volatile int val;
|
||||||
|
#endif
|
||||||
} git_atomic;
|
} git_atomic;
|
||||||
|
|
||||||
GIT_INLINE(void) git_atomic_set(git_atomic *a, int val)
|
GIT_INLINE(void) git_atomic_set(git_atomic *a, int val)
|
||||||
|
Loading…
Reference in New Issue
Block a user