summaryrefslogtreecommitdiff
path: root/src/if_python3.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-11-02 15:28:18 +0100
committerBram Moolenaar <Bram@vim.org>2015-11-02 15:28:18 +0100
commitd94464ee294a351ce7b6ba18e8bd3f24f1bef920 (patch)
tree8c3e98bb5e0f82995a6ee8e7a0729a9ec788265c /src/if_python3.c
parent8a52ba791893fd55c5bdf98825c5b3e8892eaa62 (diff)
downloadvim-git-d94464ee294a351ce7b6ba18e8bd3f24f1bef920.tar.gz
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_python3.c')
-rw-r--r--src/if_python3.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/if_python3.c b/src/if_python3.c
index a6a655f0a..721e3cc5b 100644
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -686,7 +686,12 @@ py3_runtime_link_init(char *libname, int verbose)
int
python3_enabled(int verbose)
{
- return py3_runtime_link_init(DYNAMIC_PYTHON3_DLL, verbose) == OK;
+#ifdef WIN3264
+ char *dll = DYNAMIC_PYTHON3_DLL;
+#else
+ char *dll = *p_py3dll ? (char *)p_py3dll : DYNAMIC_PYTHON3_DLL;
+#endif
+ return py3_runtime_link_init(dll, verbose) == OK;
}
/* Load the standard Python exceptions - don't import the symbols from the