[xslt] Windows build issues with wincrypt.h



Hello again,
Now I'm trying to build libxslt on windows with VC6 and having some
problems (I'm giving your build system a cross platform workout, it
did build on AIX out of the box though:) ).

It wasn't getting the typedef for HCRYPTHASH among other things. I
noticed it was inside a macro for _WIN32_WINNT which apparently isn't
getting set on my system. After searching the mailing list for
_WIN32_WINNT  I found the following thread where this was brought up
before: http://mail.gnome.org/archives/xslt/2004-July/msg00044.html
So I ended up adding the following to crypto.c and passing
/DCRYPT_SILENT to cl to get it to compile:

+ #ifndef _WIN32_WINNT
+ #define _WIN32_WINNT 0x0400
+ #endif
 #include <windows.h>
 #include <wincrypt.h>

Again I'm not sure if there is a better way to do this?
Thanks,
Nick


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]