Mercurial > vim
diff src/if_perl.xs @ 7196:42717d048817 v7.4.907
commit https://github.com/vim/vim/commit/d94464ee294a351ce7b6ba18e8bd3f24f1bef920
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 2 15:28:18 2015 +0100
patch 7.4.907
Problem: Libraries for dynamically loading interfaces can only be defined
at compile time.
Solution: Add options to specify the dll names. (Kazuki Sakamoto,
closes #452)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 02 Nov 2015 15:30:05 +0100 |
parents | 64ff14cbb665 |
children | b58e16f9119e |
line wrap: on
line diff
--- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -611,7 +611,12 @@ perl_runtime_link_init(char *libname, in perl_enabled(verbose) int verbose; { - return perl_runtime_link_init(DYNAMIC_PERL_DLL, verbose) == OK; +#if WIN3264 + char *dll = DYNAMIC_PERL_DLL; +#else + char *dll = *p_perldll ? (char *)p_perldll : DYNAMIC_PERL_DLL; +#endif + return perl_runtime_link_init(dll, verbose) == OK; } #endif /* DYNAMIC_PERL */