From 3818b443c30676350207e546563bff3b69c464d5 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 9 Nov 2019 00:20:22 +0100 Subject: [PATCH] Windows: include rdrand.h file only in Windows case since it is not yet included for other OSes --- src/Crypto/cpu.c | 2 ++ 1 file changed, 2 insertions(+) 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