summaryrefslogtreecommitdiffstats
path: root/contrib/libs/blake2/patches/pr42-fix-build-with-win32-and-clang.patch
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-08-28 14:27:58 +0300
committerrobot-piglet <[email protected]>2025-08-28 14:57:06 +0300
commit81d828c32c8d5477cb2f0ce5da06a1a8d9392ca3 (patch)
tree3081d566f0d5158d76e9093261344f6406fd09f7 /contrib/libs/blake2/patches/pr42-fix-build-with-win32-and-clang.patch
parent77ea11423f959e51795cc3ef36a48d808b4ffb98 (diff)
Intermediate changes
commit_hash:d5b1af16dbe9030537a04c27eb410c88c2f496cd
Diffstat (limited to 'contrib/libs/blake2/patches/pr42-fix-build-with-win32-and-clang.patch')
-rw-r--r--contrib/libs/blake2/patches/pr42-fix-build-with-win32-and-clang.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/contrib/libs/blake2/patches/pr42-fix-build-with-win32-and-clang.patch b/contrib/libs/blake2/patches/pr42-fix-build-with-win32-and-clang.patch
new file mode 100644
index 00000000000..830d47a36ef
--- /dev/null
+++ b/contrib/libs/blake2/patches/pr42-fix-build-with-win32-and-clang.patch
@@ -0,0 +1,36 @@
+From 48e205f0700f7f010e082aed0e273850b09b5907 Mon Sep 17 00:00:00 2001
+From: Alexander Shadchin <[email protected]>
+Date: Fri, 5 May 2023 15:27:59 +0300
+Subject: [PATCH] Fix build with Clang
+
+---
+ src/blake2b.c | 2 +-
+ src/blake2s.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/blake2b.c b/src/blake2b.c
+index ca15046..c1b8e90 100644
+--- a/src/blake2b.c
++++ b/src/blake2b.c
+@@ -27,7 +27,7 @@
+ #if defined(HAVE_SSE2)
+ #include <emmintrin.h>
+ // MSVC only defines _mm_set_epi64x for x86_64...
+-#if defined(_MSC_VER) && !defined(_M_X64)
++#if defined(_MSC_VER) && !defined(_M_X64) && !defined(__clang__)
+ static inline __m128i _mm_set_epi64x( const uint64_t u1, const uint64_t u0 )
+ {
+ return _mm_set_epi32( u1 >> 32, u1, u0 >> 32, u0 );
+diff --git a/src/blake2s.c b/src/blake2s.c
+index 0c3636e..a05b8af 100644
+--- a/src/blake2s.c
++++ b/src/blake2s.c
+@@ -27,7 +27,7 @@
+ #if defined(HAVE_SSE2)
+ #include <emmintrin.h>
+ // MSVC only defines _mm_set_epi64x for x86_64...
+-#if defined(_MSC_VER) && !defined(_M_X64)
++#if defined(_MSC_VER) && !defined(_M_X64) && !defined(__clang__)
+ static inline __m128i _mm_set_epi64x( const uint64_t u1, const uint64_t u0 )
+ {
+ return _mm_set_epi32( u1 >> 32, u1, u0 >> 32, u0 );