[blake3] fixes preprocessor with clang-cl (#36729)

This commit is contained in:
Alexandre Bique
2024-02-14 06:59:48 +01:00
committed by GitHub
parent a58271747f
commit 5ae3f89e5a
4 changed files with 8 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ index af6c3da..dce85b4 100644
#define ATOMIC_LOAD(x) x
#define ATOMIC_STORE(x, y) x = y
-#elif defined(_MSC_VER)
+#elif defined(IS_X86) and defined(_MSC_VER)
+#elif defined(IS_X86) && defined(_MSC_VER)
#define ATOMIC_INT LONG
#define ATOMIC_LOAD(x) InterlockedOr(&x, 0)
#define ATOMIC_STORE(x, y) InterlockedExchange(&x, y)

View File

@@ -1,6 +1,7 @@
{
"name": "blake3",
"version": "1.5.0",
"port-version": 1,
"description": "BLAKE3 cryptographic hash function.",
"homepage": "https://github.com/BLAKE3-team/BLAKE3",
"license": "CC0-1.0 OR Apache-2.0",

View File

@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "62d312f1abb1e3acf086050e4e14d650973f5568",
"version": "1.5.0",
"port-version": 1
},
{
"git-tree": "3d62ef88b0bacbb197e9bb921b8b7d0fea336f1d",
"version": "1.5.0",

View File

@@ -654,7 +654,7 @@
},
"blake3": {
"baseline": "1.5.0",
"port-version": 0
"port-version": 1
},
"blas": {
"baseline": "2023-03-25",