From b9a84ef8e1ccd21e0f4fdd234dbf2a4d76df678e Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Thu, 16 Jul 2020 17:34:44 -0700 Subject: [PATCH] Fixed bug --- src/crypto/randomx/panthera/sha256.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crypto/randomx/panthera/sha256.c b/src/crypto/randomx/panthera/sha256.c index 156b13ad..41cedbc2 100644 --- a/src/crypto/randomx/panthera/sha256.c +++ b/src/crypto/randomx/panthera/sha256.c @@ -34,12 +34,12 @@ #include "sha256.h" -#ifdef __ICC +#if defined(__ICC) || defined(_MSC_VER) /* Miscompile with icc 14.0.0 (at least), so don't use restrict there */ #define restrict #elif __STDC_VERSION__ >= 199901L /* Have restrict */ -#elif defined(__GNUC__) && !defined(_MSC_VER) +#elif defined(__GNUC__) #define restrict __restrict #else #define restrict