wincrypt: Fixed cross-compilation issues caused by include name
authorMarc Hoersken <info@marc-hoersken.de>
Tue, 11 Sep 2012 12:35:18 +0000 (14:35 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Tue, 11 Sep 2012 12:35:18 +0000 (14:35 +0200)
For some reason WinCrypt.h is named wincrypt.h under MinGW.

lib/md5.c
src/tool_metalink.c

index eda1fe8..ada2d37 100644 (file)
--- 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 <WinCrypt.h>
+#include <wincrypt.h>
 
 typedef struct {
   HCRYPTPROV hCryptProv;
index 9199b50..279a626 100644 (file)
@@ -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 <WinCrypt.h>
+#  include <wincrypt.h>
 /* Custom structure in order to store the required provider and hash handle */
 struct win32_crypto_hash {
   HCRYPTPROV hCryptProv;