From a6b7a08ae04a3cd4d9c45c906bb7a197e2135179 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 10 Aug 2016 20:53:05 +0200 Subject: patch 7.4.2192 Problem: Generating prototypes with Cygwin doesn't work well. Solution: Change #ifdefs. (Ken Takata) --- src/gui_w32.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui_w32.c') diff --git a/src/gui_w32.c b/src/gui_w32.c index 19f4d65002..78db43e6b3 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -247,6 +247,7 @@ gui_mch_set_rendering_options(char_u *s) # define CONST # define FAR # define NEAR +# undef _cdecl # define _cdecl typedef int BOOL; typedef int BYTE; @@ -288,6 +289,7 @@ typedef void VOID; typedef int LPNMHDR; typedef int LONG; typedef int WNDPROC; +typedef int UINT_PTR; #endif #ifndef GET_X_LPARAM @@ -3451,7 +3453,7 @@ gui_mch_settitle( set_window_title(s_hwnd, (title == NULL ? "VIM" : (char *)title)); } -#ifdef FEAT_MOUSESHAPE +#if defined(FEAT_MOUSESHAPE) || defined(PROTO) /* Table for shape IDCs. Keep in sync with the mshape_names[] table in * misc2.c! */ static LPCSTR mshape_idcs[] = @@ -3514,7 +3516,7 @@ mch_set_mouse_shape(int shape) } #endif -#ifdef FEAT_BROWSE +#if defined(FEAT_BROWSE) || defined(PROTO) /* * The file browser exists in two versions: with "W" uses wide characters, * without "W" the current codepage. When FEAT_MBYTE is defined and on -- cgit v1.2.3