summaryrefslogtreecommitdiff
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-16 20:12:02 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-16 20:12:02 +0100
commit418f81b5fa400ed59793384f2f3d9df45390f080 (patch)
treee2e69c026c062d0d483c47cddae106d4818a9ed8 /src/os_win32.c
parent0c2c96e47c8b44f7d69da2add906224a89318ff7 (diff)
downloadvim-git-418f81b5fa400ed59793384f2f3d9df45390f080.tar.gz
patch 7.4.1339v7.4.1339
Problem: Warnings when building the GUI with MingW. (Cesar Romani) Solution: Add type cats. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index c6f5cc26f..5db541890 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -236,6 +236,7 @@ static char_u *exe_path = NULL;
static BOOL win8_or_later = FALSE;
+#ifndef FEAT_GUI_W32
/*
* Version of ReadConsoleInput() that works with IME.
* Works around problems on Windows 8.
@@ -325,6 +326,7 @@ peek_console_input(
return read_console_input(hInput, lpBuffer, -1, lpEvents);
}
+# ifdef FEAT_CLIENTSERVER
static DWORD
msg_wait_for_multiple_objects(
DWORD nCount,
@@ -338,8 +340,9 @@ msg_wait_for_multiple_objects(
return MsgWaitForMultipleObjects(nCount, pHandles, fWaitAll,
dwMilliseconds, dwWakeMask);
}
+# endif
-#ifndef FEAT_CLIENTSERVER
+# ifndef FEAT_CLIENTSERVER
static DWORD
wait_for_single_object(
HANDLE hHandle,
@@ -349,6 +352,8 @@ wait_for_single_object(
return WAIT_OBJECT_0;
return WaitForSingleObject(hHandle, dwMilliseconds);
}
+# endif
+#endif
#endif
static void