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:25:33 +0000 (17:25 +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)

crypto/whrlpool/wp_block.c

index 14327f16decc58b4b0f9fb9a7d92167d7bd8354a..574ac124d4e35442a6f795449c50eaf61da2d2ac 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