diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-11-03 15:15:35 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-11-03 15:38:35 +0100 |
commit | bd7200e2b54edceaeff9aedc394409ee3f586bf1 (patch) | |
tree | 6ca4b96b980ee4a45e5d8d1cda062b7cd71bf7f4 /src/Crypto/cpu.c | |
parent | bb123bb3e8719d012884d144d326e5e8c8c15786 (diff) | |
download | VeraCrypt-bd7200e2b54edceaeff9aedc394409ee3f586bf1.tar.gz VeraCrypt-bd7200e2b54edceaeff9aedc394409ee3f586bf1.zip |
Linux/MacOSX: Fix build error caused by RDRAND_getBytes/RDSEED_getBytes implemented only on Windows
Diffstat (limited to 'src/Crypto/cpu.c')
-rw-r--r-- | src/Crypto/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |