From 418f81b5fa400ed59793384f2f3d9df45390f080 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 16 Feb 2016 20:12:02 +0100 Subject: patch 7.4.1339 Problem: Warnings when building the GUI with MingW. (Cesar Romani) Solution: Add type cats. (Yasuhiro Matsumoto) --- src/os_win32.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/os_win32.c') 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 -- cgit v1.2.1