Fix warning C4164 in MSVC.
authorjoe2018Outlookcom <joe_2018@Outlook.com>
Wed, 31 Jul 2019 05:46:02 +0000 (13:46 +0800)
committerMatt Caswell <matt@openssl.org>
Wed, 31 Jul 2019 16:32:16 +0000 (17:32 +0100)
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)

crypto/whrlpool/wp_block.c

index 0cc92a3b014912645c62084b136cba4c01e24e34..f4f994bc47d3bc4d420f2d9749728385c4657b51 100644 (file)
@@ -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