diff src/evalfunc.c @ 11215:2e4877acfe0a v8.0.0494

patch 8.0.0494: build failure with older compiler on MS-Windows commit https://github.com/vim/vim/commit/1662ce104e47f6a1eb0c2004d86b995f74dc4652 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 19 21:47:50 2017 +0100 patch 8.0.0494: build failure with older compiler on MS-Windows Problem: Build failure with older compiler on MS-Windows. Solution: Move declaration to start of block.
author Christian Brabandt <cb@256bit.org>
date Sun, 19 Mar 2017 22:00:04 +0100
parents 71311d899b42
children d3415ec1cdaf
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -8677,14 +8677,15 @@ f_remote_read(typval_T *argvars UNUSED, 
     if (serverid != NULL && !check_restricted() && !check_secure())
     {
 	int timeout = 0;
+# ifdef WIN32
+	/* The server's HWND is encoded in the 'id' parameter */
+	long_u		n = 0;
+# endif
 
 	if (argvars[1].v_type != VAR_UNKNOWN)
 	    timeout = get_tv_number(&argvars[1]);
 
 # ifdef WIN32
-	/* The server's HWND is encoded in the 'id' parameter */
-	long_u		n = 0;
-
 	sscanf((char *)serverid, SCANF_HEX_LONG_U, &n);
 	if (n != 0)
 	    r = serverGetReply((HWND)n, FALSE, TRUE, TRUE, timeout);