Skip to content

Commit

Permalink
win32: if_perl: Stop generating (g)vim.lib
Browse files Browse the repository at this point in the history
After ActivePerl 5.20.3 or later is used, (g)vim.lib is generated and an
unnecessary function is exported. This disables it.
  • Loading branch information
k-takata committed Sep 21, 2018
1 parent 3f3fb0b commit 93c0388
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/if_perl.xs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,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
Expand Down

0 comments on commit 93c0388

Please sign in to comment.