diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-09-21 14:01:27 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-09-21 14:01:27 +0200 |
commit | 1f402806b88f4187e17c0105b4604f425f41dd1c (patch) | |
tree | a9611fdae3e1a0c05838adf81a9889eae72e8f38 /src/if_perl.xs | |
parent | de2bd37becbec3547ffbaa86321c7ea6379d6bf0 (diff) | |
download | vim-git-1f402806b88f4187e17c0105b4604f425f41dd1c.tar.gz |
patch 8.1.0420: generating vim.lib when using ActivePerl 5.20.3 or laterv8.1.0420
Problem: Generating vim.lib when using ActivePerl 5.20.3 or later.
Solution: Redefine XS_EXTERNAL(). (Ken Takata, closes #3462)
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r-- | src/if_perl.xs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs index 9fd219691..627f43707 100644 --- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -88,10 +88,8 @@ # 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 @@ -99,6 +97,14 @@ # 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 |