summaryrefslogtreecommitdiff
path: root/src/os_win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_win32.h')
-rw-r--r--src/os_win32.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/os_win32.h b/src/os_win32.h
index 3c11d4d44..f620d742e 100644
--- a/src/os_win32.h
+++ b/src/os_win32.h
@@ -210,20 +210,15 @@ Trace(char *pszFormat, ...);
# define vim_mkdir(x, y) mch_mkdir(x)
#endif
-#ifndef PROTO
-
/* Enable common dialogs input unicode from IME if possible. */
#ifdef FEAT_MBYTE
- /* The variables are defined in os_win32.c. */
-extern LRESULT (WINAPI *pDispatchMessage)(CONST MSG *);
-extern BOOL (WINAPI *pGetMessage)(LPMSG, HWND, UINT, UINT);
-extern BOOL (WINAPI *pIsDialogMessage)(HWND, LPMSG);
-extern BOOL (WINAPI *pPeekMessage)(LPMSG, HWND, UINT, UINT, UINT);
+# define pDispatchMessage DispatchMessageW
+# define pGetMessage GetMessageW
+# define pIsDialogMessage IsDialogMessageW
+# define pPeekMessage PeekMessageW
#else
# define pDispatchMessage DispatchMessage
# define pGetMessage GetMessage
# define pIsDialogMessage IsDialogMessage
# define pPeekMessage PeekMessage
#endif
-
-#endif /* PROTO */