diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libsodium/001-mingw-i386.patch | |
Diffstat (limited to 'vcpkg/ports/libsodium/001-mingw-i386.patch')
| -rw-r--r-- | vcpkg/ports/libsodium/001-mingw-i386.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vcpkg/ports/libsodium/001-mingw-i386.patch b/vcpkg/ports/libsodium/001-mingw-i386.patch new file mode 100644 index 0000000..6f8cae8 --- /dev/null +++ b/vcpkg/ports/libsodium/001-mingw-i386.patch @@ -0,0 +1,21 @@ +diff --git a/src/libsodium/randombytes/internal/randombytes_internal_random.c b/src/libsodium/randombytes/internal/randombytes_internal_random.c +--- a/src/libsodium/randombytes/internal/randombytes_internal_random.c ++++ b/src/libsodium/randombytes/internal/randombytes_internal_random.c +@@ -45,7 +45,7 @@ + # include <poll.h> + #endif + #ifdef HAVE_RDRAND +-# ifdef __clang__ ++# if defined (__clang__) && (!defined(__MINGW32__) || !defined(__i386__)) + # pragma clang attribute push(__attribute__((target("rdrnd"))), apply_to = function) + # elif defined(__GNUC__) + # pragma GCC target("rdrnd") +@@ -639,7 +639,7 @@ struct randombytes_implementation randombytes_internal_implementation = { + }; + + #ifdef HAVE_RDRAND +-# ifdef __clang__ ++# if defined (__clang__) && (!defined(__MINGW32__) || !defined(__i386__)) + # pragma clang attribute pop + # endif + #endif |