VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/cpu.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-11-09 00:20:22 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-11-09 00:26:21 +0100
commit3818b443c30676350207e546563bff3b69c464d5 (patch)
treef0c29216e260ffb6f8b1cb1d5a27ca5c9836fe12 /src/Crypto/cpu.c
parent8c6838e85c242783e70dfadadf989fbf3c86a312 (diff)
downloadVeraCrypt-3818b443c30676350207e546563bff3b69c464d5.tar.gz
VeraCrypt-3818b443c30676350207e546563bff3b69c464d5.zip
Windows: include rdrand.h file only in Windows case since it is not yet included for other OSes
Diffstat (limited to 'src/Crypto/cpu.c')
-rw-r--r--src/Crypto/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Crypto/cpu.c b/src/Crypto/cpu.c
index e1614d30..4aeb8d39 100644
--- a/src/Crypto/cpu.c
+++ b/src/Crypto/cpu.c
@@ -2,7 +2,9 @@
#include "cpu.h"
#include "misc.h"
+#if defined(_MSC_VER) && !defined(_UEFI)
#include "rdrand.h"
+#endif
#ifndef EXCEPTION_EXECUTE_HANDLER
#define EXCEPTION_EXECUTE_HANDLER 1