From cf190c6f017563de1bdbf854b3376522b8b2748f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 2 Jun 2016 11:54:06 +0200 Subject: patch 7.4.1869 Problem: Can't build with old version of Perl. Solution: Define PERLIO_FUNCS_DECL. (Tom G. Christensen) --- src/if_perl.xs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/if_perl.xs') diff --git a/src/if_perl.xs b/src/if_perl.xs index a4899945f..83f14793c 100644 --- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -61,6 +61,17 @@ # include #endif +/* Workaround for perl < 5.8.7 */ +#ifndef PERLIO_FUNCS_DECL +# ifdef PERLIO_FUNCS_CONST +# define PERLIO_FUNCS_DECL(funcs) const PerlIO_funcs funcs +# define PERLIO_FUNCS_CAST(funcs) (PerlIO_funcs*)(funcs) +# else +# define PERLIO_FUNCS_DECL(funcs) PerlIO_funcs funcs +# define PERLIO_FUNCS_CAST(funcs) (funcs) +# endif +#endif + /* * Work around clashes between Perl and Vim namespace. proto.h doesn't * include if_perl.pro and perlsfio.pro when IN_PERL_FILE is defined, because -- cgit v1.2.1