summaryrefslogtreecommitdiffstats
path: root/src/os_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index d936e4f087..af2622caeb 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -2834,7 +2834,11 @@ SaveConsoleTitleAndIcon(void)
return;
// Extract the first icon contained in the Vim executable.
- if (mch_icon_load((HANDLE *)&g_hVimIcon) == FAIL || g_hVimIcon == NULL)
+ if (
+# ifdef FEAT_LIBCALL
+ mch_icon_load((HANDLE *)&g_hVimIcon) == FAIL ||
+# endif
+ g_hVimIcon == NULL)
g_hVimIcon = ExtractIcon(NULL, (LPCSTR)exe_name, 0);
if (g_hVimIcon != NULL)
g_fCanChangeIcon = TRUE;