diff options
author | Nicholas Clark <nick@ccl4.org> | 2012-07-30 16:53:52 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2012-07-30 16:53:52 +0200 |
commit | 5fde9fa4cbe66ffa73af8a18a5042cb511c581a4 (patch) | |
tree | eb14dc51aa47a0f63310b43d4e3090cf53244194 /dist | |
parent | aa959a20b7e2dc9d2259242c6befcf620e6dfb5b (diff) | |
download | perl-5fde9fa4cbe66ffa73af8a18a5042cb511c581a4.tar.gz |
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.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/Data-Dumper/Dumper.xs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/Data-Dumper/Dumper.xs b/dist/Data-Dumper/Dumper.xs index f763664714..156cba1d58 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); |