Linux/MacOSX: Fix build error caused by RDRAND_getBytes/RDSEED_getBytes implemented only on Windows

This commit is contained in:
Mounir IDRASSI 2019-11-03 15:15:35 +01:00
parent bb123bb3e8
commit bd7200e2b5
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -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)
{