office-gobmx/external/libtommath/clang-cl.patch
Andrea Gelmini 09425ab9f1 Removed executable permission on data files
chmod -x for .patch, .pptm, and .vb

Change-Id: I98e1221e48df22e8b58aaf305898cbe301f187ce
Reviewed-on: https://gerrit.libreoffice.org/52568
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-05-04 03:19:33 +02:00

16 lines
414 B
Diff

--- 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
+// <https://bugs.llvm.org/show_bug.cgi?id=25305> "Clang-cl generates a call to an undefined symbol
+// _udivti3":
+#if defined _WIN32 && defined __clang__
+#define MP_8BIT
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>