summaryrefslogtreecommitdiff
path: root/libexslt/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexslt/crypto.c')
-rw-r--r--libexslt/crypto.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libexslt/crypto.c b/libexslt/crypto.c
index a233771a..8845a132 100644
--- a/libexslt/crypto.c
+++ b/libexslt/crypto.c
@@ -102,7 +102,7 @@ exsltCryptoHex2Bin (const unsigned char *hex, int hexlen,
return j;
}
-#if defined(_WIN32) && !defined(__CYGWIN__)
+#if defined(_WIN32)
#define HAVE_CRYPTO
#define PLATFORM_HASH exsltCryptoCryptoApiHash
@@ -127,7 +127,7 @@ exsltCryptoCryptoApiReportError (xmlXPathParserContextPtr ctxt,
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM, NULL, dw,
MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
- &lpMsgBuf, 0, NULL);
+ (LPSTR)&lpMsgBuf, 0, NULL);
xsltTransformError (xsltXPathGetTransformContext (ctxt), NULL, NULL,
"exslt:crypto error (line %d). %s", line,
@@ -315,9 +315,6 @@ exsltCryptoCryptoApiRc4Decrypt (xmlXPathParserContextPtr ctxt,
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h> /* needed by gcrypt.h 4 Jul 04 */