Mercurial > vim
changeset 9171:20e7b99c33d4 v7.4.1869
commit https://github.com/vim/vim/commit/cf190c6f017563de1bdbf854b3376522b8b2748f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 2 11:54:06 2016 +0200
patch 7.4.1869
Problem: Can't build with old version of Perl.
Solution: Define PERLIO_FUNCS_DECL. (Tom G. Christensen)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 02 Jun 2016 12:00:06 +0200 |
parents | 7cae03af1bb4 |
children | 41c1e22a3ec0 |
files | src/if_perl.xs src/version.c |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -61,6 +61,17 @@ # include <perliol.h> #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