From: Marc Hoersken Date: Tue, 11 Sep 2012 12:35:18 +0000 (+0200) Subject: wincrypt: Fixed cross-compilation issues caused by include name X-Git-Tag: curl-7_28_0~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f7e2ea72f2471a20060024d6a2d8377d21bcba9;p=curl wincrypt: Fixed cross-compilation issues caused by include name For some reason WinCrypt.h is named wincrypt.h under MinGW. --- 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;