It seems that simply defining _REENTRANT on the build line (/D "_REENTRANT) 
doesn't work on Win32 to enable thread-safety. This is caused by win32config.h 
only getting pulled in for the _WIN32_WCE platform:

#if defined(macintosh)
#include "config-mac.h"
#elif defined(_WIN32_WCE)
/*
 * Windows CE compatibility definitions and functions
 * This is needed to compile libxml2 for Windows CE.
 * At least I tested it with WinCE 5.0 for Emulator and WinCE 4.2/SH4 target
 */
#include <win32config.h>
#include <libxml/xmlversion.h>
#else
#include "config.h"
#include <libxml/xmlversion.h>
#endif

Is this the expected behavior? It looks to me as if it should be used for Win32 
also. As it stands now, HAVE_WIN32_THREADS never gets defined in the build 
system unless one manually passes it in from the build line.

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to