Porting/expand-macro.pl needs to avoid "macro redefined" errors.
authorNicholas Clark <nick@ccl4.org>
Wed, 7 Dec 2011 10:26:29 +0000 (11:26 +0100)
committerNicholas Clark <nick@ccl4.org>
Wed, 7 Dec 2011 10:26:29 +0000 (11:26 +0100)
commitae2e176f7be6c85a6339a59bda00ae2f36d09397
treec33ad3d574f311d6a2d47a5e2ce797412879f299
parent673699fed0c089f7819da8740d236474460a3d91
Porting/expand-macro.pl needs to avoid "macro redefined" errors.

In the C code that Porting/expand-macro.pl generates, it #includes the
header containing the macro, to ensure that the macro definition is seen.
This was skipped for perl.h and EXTERN.h, which it always automatically
includes. However, perl.h includes embed.h and embedvar.h and then undefines
and redefines macros in them. Hence if either header is included (again) the
compiler warns about macro redefinitions. Hence ensure that neither is
included a second time.
Porting/expand-macro.pl