fix inline constraints for clang, no variant with constants.

more recent libtomcrypt switched to macros because of this, but we
don't really care.
This commit is contained in:
espie 2017-04-28 11:04:56 +00:00
parent f34a554245
commit c7b77d007e

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_libtomcrypt_src_headers_tomcrypt_macros_h,v 1.1 2017/04/28 11:04:56 espie Exp $
--- src/libtomcrypt/src/headers/tomcrypt_macros.h.orig Fri Apr 28 12:47:29 2017
+++ src/libtomcrypt/src/headers/tomcrypt_macros.h Fri Apr 28 12:59:54 2017
@@ -1,3 +1,8 @@
+/* clang doesn't like pseudo constant constraints, with reason */
+#ifdef __clang__
+#define LTC_NO_ROLC
+#endif
+
/* fix for MSVC ...evil! */
#ifdef _MSC_VER
#define CONST64(n) n ## ui64