summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-19 21:20:53 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-19 21:20:53 +0100
commit81b9d0bd5c705815e903e671e81b0b05828efd9c (patch)
tree3e832c3269ad004ee414c81b5ddbd65ae93ad9d5 /src/vim.h
parentbfd830d3e2dbd1e9b14c65625f18773074e6ac67 (diff)
downloadvim-81b9d0bd5c705815e903e671e81b0b05828efd9c.zip
patch 8.0.0492: a failing client-server request can make Vim hang
Problem: A failing client-server request can make Vim hang. Solution: Add a timeout argument to functions that wait.
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vim.h b/src/vim.h
index dd571df37..57866ef53 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -2506,7 +2506,9 @@ typedef enum {
# define ELAPSED_INIT(v) v = GetTickCount()
# define ELAPSED_FUNC(v) elapsed(v)
# define ELAPSED_TYPE DWORD
- long elapsed(DWORD start_tick);
+# ifndef PROTO
+ long elapsed(DWORD start_tick);
+# endif
# endif
#endif