To: vim_dev@googlegroups.com Subject: Patch 7.4.1869 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1869 Problem: Can't build with old version of Perl. Solution: Define PERLIO_FUNCS_DECL. (Tom G. Christensen) Files: src/if_perl.xs *** ../vim-7.4.1868/src/if_perl.xs 2016-06-01 20:31:40.273551014 +0200 --- src/if_perl.xs 2016-06-02 11:53:17.220790361 +0200 *************** *** 61,66 **** --- 61,77 ---- # 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 *** ../vim-7.4.1868/src/version.c 2016-06-01 23:08:35.253421504 +0200 --- src/version.c 2016-06-02 11:49:58.940793088 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1869, /**/ -- hundred-and-one symptoms of being an internet addict: 33. You name your children Eudora, Mozilla and Dotcom. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///