From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- external/libtommath/clang-cl.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 external/libtommath/clang-cl.patch (limited to 'external/libtommath/clang-cl.patch') diff --git a/external/libtommath/clang-cl.patch b/external/libtommath/clang-cl.patch new file mode 100644 index 000000000..1cc92d380 --- /dev/null +++ b/external/libtommath/clang-cl.patch @@ -0,0 +1,16 @@ +--- tommath.h ++++ tommath.h +@@ -15,6 +15,13 @@ + #ifndef BN_H_ + #define BN_H_ + ++// Work around clang-cl issue when mp_word is a typedef for unsigned __int128, see ++// "Clang-cl generates a call to an undefined symbol ++// _udivti3": ++#if defined _WIN32 && defined __clang__ ++#define MP_8BIT ++#endif ++ + #include + #include + #include -- cgit v1.2.3