Skip to content

Commit c852e95

Browse files
committed
Supply now required HeUTF8 macro for plperl where it's missing, per buildfarm results.
1 parent fb7355e commit c852e95

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pl/plperl/plperl.h

+7
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@
4242
#undef bool
4343
#endif
4444

45+
/* supply HeUTF8 if it's missing - ppport.h doesn't supply it, unfortunately */
46+
#ifndef HeUTF8
47+
#define HeUTF8(he) ((HeKLEN(he) == HEf_SVKEY) ? \
48+
SvUTF8(HeKEY_sv(he)) : \
49+
(U32)HeKUTF8(he))
50+
#endif
51+
4552
/* declare routines from plperl.c for access by .xs files */
4653
HV *plperl_spi_exec(char *, int);
4754
void plperl_return_next(SV *);

0 commit comments

Comments
 (0)