diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-29 21:11:25 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-29 21:11:25 +0100 |
commit | f12d983deab06b0408781d7a6c2f8970d765b723 (patch) | |
tree | 50d51bd7d02ffaebeba71a2faecb0380a4a04f84 /src/gui_w32.c | |
parent | 83162468b3c8722fffea033d3de144cd4191472a (diff) | |
download | vim-f12d983deab06b0408781d7a6c2f8970d765b723.zip |
patch 7.4.1195
Problem: The channel feature does not work in the MS-Windows console.
Solution: Add win32 console support. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r-- | src/gui_w32.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index ecc1fab41..88b89c6b3 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -553,9 +553,6 @@ typedef BOOL (WINAPI *TGetMonitorInfo)(_HMONITOR, _MONITORINFO *); static TMonitorFromWindow pMonitorFromWindow = NULL; static TGetMonitorInfo pGetMonitorInfo = NULL; static HANDLE user32_lib = NULL; -#ifdef FEAT_CHANNEL -int WSInitialized = FALSE; /* WinSock is initialized */ -#endif /* * Return TRUE when running under Windows NT 3.x or Win32s, both of which have * less fancy GUI APIs. @@ -844,6 +841,7 @@ _OnWindowPosChanged( const LPWINDOWPOS lpwpos) { static int x = 0, y = 0, cx = 0, cy = 0; + extern int WSInitialized; if (WSInitialized && (lpwpos->x != x || lpwpos->y != y || lpwpos->cx != cx || lpwpos->cy != cy)) @@ -5049,22 +5047,3 @@ netbeans_draw_multisign_indicator(int row) SetPixel(s_hdc, x+2, y, gui.currFgColor); } #endif - -#if defined(FEAT_CHANNEL) || defined(PROTO) -/* - * Initialize the Winsock dll. - */ - void -channel_init_winsock() -{ - WSADATA wsaData; - int wsaerr; - - if (WSInitialized) - return; - - wsaerr = WSAStartup(MAKEWORD(2, 2), &wsaData); - if (wsaerr == 0) - WSInitialized = TRUE; -} -#endif |