This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In DosGlob.xs, add a block around MY_CXT_INIT, as it contains a declaration.
authorNicholas Clark <nick@ccl4.org>
Wed, 12 Dec 2012 09:18:21 +0000 (10:18 +0100)
committerNicholas Clark <nick@ccl4.org>
Wed, 12 Dec 2012 09:18:21 +0000 (10:18 +0100)
commit09391cc554f6d7daf76cbe5b4c7ce18c82372b70
tree23c7dab18e1365b24c154f411ae10eed40400723
parentb4fbebdebb0ca08b0fd5e052deb2d8c7d60d527a
In DosGlob.xs, add a block around MY_CXT_INIT, as it contains a declaration.

The macro MY_CXT_INIT contains a variable declaration, and xsubpp doesn't
wrap XS BOOT sections within a block, hence code at the start of the BOOT
section may already be after code. Hence wrap MY_CXT_INIT within a block, to
ensure that its initialisation is before any code.
ext/File-DosGlob/DosGlob.xs