diff src/os_win32.c @ 7734:616769d423fc v7.4.1165

commit https://github.com/vim/vim/commit/938ee834d345062cd94f8fdfd54fad0019432a83 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 24 15:36:03 2016 +0100 patch 7.4.1165 Problem: When defining DYNAMIC_ICONV_DLL in the makefile, the build fails. Solution: Add #ifdef's. (Taro Muraoka) Try the newer version first.
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Jan 2016 15:45:04 +0100
parents 21b0a39d13ed
children 29d4ee3f009a
line wrap: on
line diff
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -500,9 +500,12 @@ dyn_libintl_init()
     if (hLibintlDLL)
 	return 1;
     /* Load gettext library (libintl.dll) */
-    hLibintlDLL = vimLoadLib(GETTEXT_DLL);
+#ifdef GETTEXT_DLL_ALT
     if (!hLibintlDLL)
 	hLibintlDLL = vimLoadLib(GETTEXT_DLL_ALT);
+#endif
+    if (!hLibintlDLL)
+	hLibintlDLL = vimLoadLib(GETTEXT_DLL);
     if (!hLibintlDLL)
     {
 	if (p_verbose > 0)