From bd7200e2b54edceaeff9aedc394409ee3f586bf1 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 3 Nov 2019 15:15:35 +0100 Subject: Linux/MacOSX: Fix build error caused by RDRAND_getBytes/RDSEED_getBytes implemented only on Windows --- src/Crypto/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Crypto') diff --git a/src/Crypto/cpu.c b/src/Crypto/cpu.c index 53912799..e1614d30 100644 --- a/src/Crypto/cpu.c +++ b/src/Crypto/cpu.c @@ -387,7 +387,7 @@ void DetectX86Features() } } } -#ifndef _UEFI +#if defined(_MSC_VER) && !defined(_UEFI) /* Add check fur buggy RDRAND (AMD Ryzen case) even if we always use RDSEED instead of RDRAND when RDSEED available */ if (g_hasRDRAND) { -- cgit v1.2.3