summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoe2018Outlookcom <joe_2018@Outlook.com>2019-07-31 13:46:02 +0800
committerMatt Caswell <matt@openssl.org>2019-07-31 17:32:16 +0100
commitca33a43fe21ace99a7e689f40a90e3ad42e794a0 (patch)
treea4d12b0b2bfea5403a95ffd9a2bf8d930ca3143d
parentffc2b6373aabcdcfbb0ac725a00a907834202c4f (diff)
Fix warning C4164 in MSVC.
Fix: crypto\whrlpool\wp_block.c(90) : warning C4164: '_rotl64' : intrinsic function not declared. Fixes #9487 Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9488) (cherry picked from commit 0c789f59f117ccbb30ffc621216ba776117c7c61)
-rw-r--r--crypto/whrlpool/wp_block.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/whrlpool/wp_block.c b/crypto/whrlpool/wp_block.c
index 0cc92a3b01..f4f994bc47 100644
--- a/crypto/whrlpool/wp_block.c
+++ b/crypto/whrlpool/wp_block.c
@@ -87,6 +87,7 @@ typedef unsigned long long u64;
#ifndef PEDANTIC
# if defined(_MSC_VER)
# if defined(_WIN64) /* applies to both IA-64 and AMD64 */
+# include <stdlib.h>
# pragma intrinsic(_rotl64)
# define ROTATE(a,n) _rotl64((a),n)
# endif