]> granicus.if.org Git - vim/commitdiff
patch 8.1.0420: generating vim.lib when using ActivePerl 5.20.3 or later v8.1.0420
authorBram Moolenaar <Bram@vim.org>
Fri, 21 Sep 2018 12:01:27 +0000 (14:01 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 21 Sep 2018 12:01:27 +0000 (14:01 +0200)
Problem:    Generating vim.lib when using ActivePerl 5.20.3 or later.
Solution:   Redefine XS_EXTERNAL(). (Ken Takata, closes #3462)

src/if_perl.xs
src/version.c

index 9fd219691ef09b6025593f5743ab5f2e96aee5ba..627f437075a61fd4a2a027351cc032e5a6198026 100644 (file)
 # endif
 #endif
 
-/* Perl compatibility stuff. This should ensure compatibility with older
- * versions of Perl.
- */
-
+// Perl compatibility stuff. This should ensure compatibility with older
+// versions of Perl.
 #ifndef PERL_VERSION
 # include <patchlevel.h>
 # define PERL_REVISION   5
 # define PERL_SUBVERSION SUBVERSION
 #endif
 
+
+// Work around for ActivePerl 5.20.3+: Avoid generating (g)vim.lib.
+#if defined(ACTIVEPERL_VERSION) && (ACTIVEPERL_VERSION >= 2003) \
+       && defined(WIN32) && defined(USE_DYNAMIC_LOADING)
+# undef XS_EXTERNAL
+# define XS_EXTERNAL(name) XSPROTO(name)
+#endif
+
 /*
  * Quoting Jan Dubois of Active State:
  *    ActivePerl build 822 still identifies itself as 5.8.8 but already
index bc3cbf3f88726608cee91de2919f03e0ecfb1ce3..992ed7ffd5022a01e46ec9c58a82e478b8ed3c78 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    420,
 /**/
     419,
 /**/