VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/Whirlpool.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-01-12 18:12:10 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-01-12 18:13:24 +0100
commitc0f46187dec76c4ff980a3267d716e7f05c92f33 (patch)
treea172fc09f6e07eac163507004a3b57684631240f /src/Crypto/Whirlpool.c
parent386f7bc9b043a2140b61210289ee27b03ca3fda8 (diff)
downloadVeraCrypt-c0f46187dec76c4ff980a3267d716e7f05c92f33.tar.gz
VeraCrypt-c0f46187dec76c4ff980a3267d716e7f05c92f33.zip
Fix build error in Crypto/Whirpool.c when using LLVM Clang compiler by disabling inline assembly in this case (caused by http://llvm.org/bugs/show_bug.cgi?id=24232)
Diffstat (limited to 'src/Crypto/Whirlpool.c')
-rw-r--r--src/Crypto/Whirlpool.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Crypto/Whirlpool.c b/src/Crypto/Whirlpool.c
index 86b3ebf6..308f4812 100644
--- a/src/Crypto/Whirlpool.c
+++ b/src/Crypto/Whirlpool.c
@@ -80,6 +80,15 @@
#include "misc.h"
#include "Whirlpool.h"
+// "Inline assembly operands don't work with .intel_syntax",
+// http://llvm.org/bugs/show_bug.cgi?id=24232
+#if defined(CRYPTOPP_DISABLE_INTEL_ASM)
+# undef CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE
+# undef CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE
+# define CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE 0
+# define CRYPTOPP_BOOL_SSSE3_ASM_AVAILABLE 0
+#endif
+
/*
* The number of rounds of the internal dedicated block cipher.
*/