From 246233c40262c5be2edfa916cf841dd4bce6598e Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 9 Aug 2016 22:08:47 +0200 Subject: Windows EFI Bootloader: modifications to prepare EFI system encryption support (common files with DcsBoot) --- src/Crypto/Sha2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Crypto/Sha2.c') diff --git a/src/Crypto/Sha2.c b/src/Crypto/Sha2.c index 02680eb5..6bc0bd84 100644 --- a/src/Crypto/Sha2.c +++ b/src/Crypto/Sha2.c @@ -69,7 +69,9 @@ */ #include "Common/Endian.h" +#include "Common/Tcdefs.h" #include "Crypto/misc.h" + #define PLATFORM_BYTE_ORDER BYTE_ORDER #define IS_LITTLE_ENDIAN LITTLE_ENDIAN @@ -77,7 +79,9 @@ #define UNROLL_SHA2 /* for SHA2 loop unroll */ #endif +#if !defined(_UEFI) #include /* for memcpy() etc. */ +#endif !defined(_UEFI) #include "Sha2.h" @@ -86,7 +90,7 @@ extern "C" { #endif -#if defined( _MSC_VER ) && ( _MSC_VER > 800 ) +#if defined( _MSC_VER ) && ( _MSC_VER > 800 ) && !defined(_UEFI) #pragma intrinsic(memcpy) #endif -- cgit v1.2.3