diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-11-09 00:20:22 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-11-09 00:26:21 +0100 |
commit | 3818b443c30676350207e546563bff3b69c464d5 (patch) | |
tree | f0c29216e260ffb6f8b1cb1d5a27ca5c9836fe12 /src | |
parent | 8c6838e85c242783e70dfadadf989fbf3c86a312 (diff) | |
download | VeraCrypt-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')
-rw-r--r-- | src/Crypto/cpu.c | 2 |
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 |