diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-11-02 15:28:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-11-02 15:28:18 +0100 |
commit | d94464ee294a351ce7b6ba18e8bd3f24f1bef920 (patch) | |
tree | 8c3e98bb5e0f82995a6ee8e7a0729a9ec788265c /src/if_lua.c | |
parent | 8a52ba791893fd55c5bdf98825c5b3e8892eaa62 (diff) |
patch 7.4.907v7.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)
Diffstat (limited to 'src/if_lua.c')
-rw-r--r-- | src/if_lua.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/if_lua.c b/src/if_lua.c index 167e86517a..bc2d6c3678 100644 --- a/src/if_lua.c +++ b/src/if_lua.c @@ -402,7 +402,12 @@ lua_link_init(char *libname, int verbose) int lua_enabled(int verbose) { - return lua_link_init(DYNAMIC_LUA_DLL, verbose) == OK; +#ifdef WIN3264 + char *dll = DYNAMIC_LUA_DLL; +#else + char *dll = *p_luadll ? (char *)p_luadll : DYNAMIC_LUA_DLL; +#endif + return lua_link_init(dll, verbose) == OK; } #endif /* DYNAMIC_LUA */ |