You shouldn't make changes to the source code: the will get lost with the next update. Better change your project's settings. You can add _WIN32_WINNT=0x0400 (or whatever define you need) to the field "Preprocessor definitions" in the "C/C++" tab in the menu entry "Project/Settings" of VC6.
Servus -- Alfred -- Alfred Mickautsch Schuler Business Solutions AG Karl-Berner-Str. 4 D-72285 Pfalzgrafenweiler tel: +49 (0)74 45 830-184 fax: +49 (0)74 45 830-349 e-mail: [EMAIL PROTECTED] > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag > von Nick Deubert > Gesendet: Freitag, 11. Mai 2007 23:28 > An: The Gnome XSLT library mailing-list > Betreff: [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 > _______________________________________________ > xslt mailing list, project page http://xmlsoft.org/XSLT/ > [email protected] > http://mail.gnome.org/mailman/listinfo/xslt > SCHULER Business Solutions AG Aktiengesellschaft mit Sitz in D-72285 Pfalzgrafenweiler, Karl-Berner-Str. 4 Registergericht Stuttgart HRB 430947 Vorstand: Uwe Jonas, Harald Sieber Vorsitzender des Aufsichtsrates: Gerhard Schuler _______________________________________________ xslt mailing list, project page http://xmlsoft.org/XSLT/ [email protected] http://mail.gnome.org/mailman/listinfo/xslt
