summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2016-07-15 16:04:53 -0700
committerFather Chrysostomos <sprout@cpan.org>2016-07-15 16:05:29 -0700
commit8bfa1b58816b4557fc9cccf7baadaf2534188549 (patch)
treeb45d1c061aeec0ef15cdff871ad8c129c1c44b7b /perl.h
parent73cf5d5a6a3003e11799b4507e9f6336155196a3 (diff)
downloadperl-8bfa1b58816b4557fc9cccf7baadaf2534188549.tar.gz
[perl #128621] #define PL_encoding
to a NULL SV for non-core code, so that code that checks if(PL_encoding) will continue to compile and work.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 1f19140d3e..2702cc15c9 100644
--- a/perl.h
+++ b/perl.h
@@ -5285,6 +5285,7 @@ EXTCONST char *const PL_phase_names[];
# define PL_dirty cBOOL(PL_phase == PERL_PHASE_DESTRUCT)
# define PL_amagic_generation PL_na
+# define PL_encoding ((SV *)NULL)
#endif /* !PERL_CORE */
#define PL_hints PL_compiling.cop_hints