From 5fde9fa4cbe66ffa73af8a18a5042cb511c581a4 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Mon, 30 Jul 2012 16:53:52 +0200 Subject: [PATCH 1/1] Fix C pre-processor expression in Dumper.xs Commit 153920a10f425609 added a second condition to an #ifdef in Dumper.xs, but didn't change the #ifdef to #if defined. Clearly gcc can cope with the resulting non-conformant pre-processor expression, but pickier compilers (such as HP's) reject it. Re-write it in a way that everything accepts. --- dist/Data-Dumper/Dumper.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/Data-Dumper/Dumper.xs b/dist/Data-Dumper/Dumper.xs index f763664..156cba1 100644 --- a/dist/Data-Dumper/Dumper.xs +++ b/dist/Data-Dumper/Dumper.xs @@ -1009,7 +1009,7 @@ DD_dump(pTHX_ SV *val, const char *name, STRLEN namelen, SV *retval, HV *seenhv, } #ifdef SvVOK else if (SvMAGICAL(val) && (mg = mg_find(val, 'V'))) { -# ifndef PL_vtbl_vstring && PERL_VERSION < 17 +# if !defined(PL_vtbl_vstring) && PERL_VERSION < 17 SV * const vecsv = sv_newmortal(); # if PERL_VERSION < 10 scan_vstring(mg->mg_ptr, vecsv); -- 1.8.3.1