VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/cpu.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-11-03 15:15:35 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-11-03 15:38:35 +0100
commitbd7200e2b54edceaeff9aedc394409ee3f586bf1 (patch)
tree6ca4b96b980ee4a45e5d8d1cda062b7cd71bf7f4 /src/Crypto/cpu.c
parentbb123bb3e8719d012884d144d326e5e8c8c15786 (diff)
downloadVeraCrypt-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.c2
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)
{