From bcd258b8ea3fa36748bc52b76a9bb28df97e0c2b Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Thu, 21 Oct 2010 20:32:31 +0100 Subject: [PATCH] MY_CXT_INIT happens to contain a variable declaration, so give it its own block Without this, Glob.xs won't build on any compiler which enforces this part of C89. --- ext/File-Glob/Glob.xs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/File-Glob/Glob.xs b/ext/File-Glob/Glob.xs index 8543a04..d4b453c 100644 --- a/ext/File-Glob/Glob.xs +++ b/ext/File-Glob/Glob.xs @@ -80,7 +80,10 @@ BOOT: { CV *cv = newXS("File::Glob::bsd_glob", XS_File__Glob_doglob, __FILE__); XSANY.any_i32 = 1; +} +BOOT: +{ MY_CXT_INIT; } -- 2.7.4