Default configuration builds on Win32 require perlmain.c to #include
perlapi.h (e.g. via XSUB.h) to avoid linker errors over PL_do_undump
and PL_use_safe_putenv.
From: Ben Morrow <ben@morrow.me.uk>
Date: Wed, 6 May 2009 22:38:01 +0100
Message-ID: <
20090506213801.GA9074@osiris.mauzo.dyndns.org>
while (<MINI>) {
last if /Do not delete this line--writemain depends on it/;
print;
+ /#include "perl.h"/ and print qq/#include "XSUB.h"\n/;
}
print <<'END';