Skip to content

Commit

Permalink
Fix BLAKE3 build
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie committed Dec 31, 2023
1 parent 7ea4348 commit 290e8f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/belahash/blake3/blake3_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
#define ATOMIC_LOAD(x) x
#define ATOMIC_STORE(x, y) x = y
#elif defined(_MSC_VER)
#define ATOMIC_INT LONG
#define ATOMIC_LOAD(x) InterlockedOr(&x, 0)
#define ATOMIC_STORE(x, y) InterlockedExchange(&x, y)
#define ATOMIC_INT long
#define ATOMIC_LOAD(x) _InterlockedOr(&x, 0)
#define ATOMIC_STORE(x, y) _InterlockedExchange(&x, y)
#else
#define ATOMIC_INT int
#define ATOMIC_LOAD(x) x
Expand Down

0 comments on commit 290e8f6

Please sign in to comment.