]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1869 v7.4.1869
authorBram Moolenaar <Bram@vim.org>
Thu, 2 Jun 2016 09:54:06 +0000 (11:54 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 2 Jun 2016 09:54:06 +0000 (11:54 +0200)
Problem:    Can't build with old version of Perl.
Solution:   Define PERLIO_FUNCS_DECL. (Tom G. Christensen)

src/if_perl.xs
src/version.c

index a4899945fe5fc165b70201ed98b4229dac8fcaa5..83f14793c2f41d2ce1aae6eb63be90c49a6f1a6c 100644 (file)
 # 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
index ea586106a3657cca2bafdccaee8ae2540c1cb2e7..ed479cd36b1291ebbb69e7fe5752136ed10c0f04 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1869,
 /**/
     1868,
 /**/