I'd like to submit this patch for consideration.

I picked up Sablotron and XML-Sablotron to build against VC5 on Win32. I had
no problem building Sablotron 0.35 yet nmake failed to include malloc.h
during compilation of Sablotron.c. For reference, I scoured libwin32 and
found a directive to use around malloc's inclusion. Here's a diff of
Sablotron.xs:

17,18d16
< #if defined(WIN32)
< #if defined(__cplusplus) && !defined(PERL_OBJECT)
20,23d17
< #endif
< #else
< #include <malloc.h>
< #endif

This worked, XML-Sablotron compiled and 4 tests were successful.

BTW: I've stored a Win32 PPM package of XML-Sablotron 0.35 (both
multi-threaded and object) at
http://members.home.com/johncope/perl/Sablotron.zip as a service to the
XML-Perl community.


John G. Cope


Reply via email to