From 7f7e2ea72f2471a20060024d6a2d8377d21bcba9 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Tue, 11 Sep 2012 14:35:18 +0200 Subject: [PATCH] wincrypt: Fixed cross-compilation issues caused by include name For some reason WinCrypt.h is named wincrypt.h under MinGW. --- lib/md5.c | 2 +- src/tool_metalink.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/md5.c b/lib/md5.c index eda1fe80b..ada2d37e6 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -86,7 +86,7 @@ static void MD5_Final(unsigned char digest[16], MD5_CTX * ctx) #elif defined(_WIN32) -#include +#include typedef struct { HCRYPTPROV hCryptProv; diff --git a/src/tool_metalink.c b/src/tool_metalink.c index 9199b50f7..279a626cb 100644 --- a/src/tool_metalink.c +++ b/src/tool_metalink.c @@ -64,7 +64,7 @@ #elif defined(_WIN32) /* For Windows: If no other crypto library is provided, we fallback to the hash functions provided within the Microsoft Windows CryptoAPI */ -# include +# include /* Custom structure in order to store the required provider and hash handle */ struct win32_crypto_hash { HCRYPTPROV hCryptProv; -- 2.50.1