From 8616c0ef71eed82b0b73d63c9391a7ec3681908c Mon Sep 17 00:00:00 2001 From: Force Charlie Date: Sun, 31 Dec 2023 18:58:31 +0800 Subject: [PATCH] sync bela: Fix BLAKE3 build --- vendor/bela.lock | 2 +- vendor/bela/src/belahash/blake3/blake3_dispatch.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/bela.lock b/vendor/bela.lock index ffd7ce0..deba421 100644 --- a/vendor/bela.lock +++ b/vendor/bela.lock @@ -1 +1 @@ -https://github.com/fcharlie/bela/tree/7ea43482892f03eac1850fd4e6bcf9cd572b4ecf +https://github.com/fcharlie/bela/tree/290e8f60a43031ca948e11d618606e8651b87be8 diff --git a/vendor/bela/src/belahash/blake3/blake3_dispatch.c b/vendor/bela/src/belahash/blake3/blake3_dispatch.c index af6c3da..e681e87 100644 --- a/vendor/bela/src/belahash/blake3/blake3_dispatch.c +++ b/vendor/bela/src/belahash/blake3/blake3_dispatch.c @@ -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