summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/vim.h b/src/vim.h
index b11f1ccb9..9ae3b3081 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -2625,17 +2625,15 @@ typedef enum {
# define ELAPSED_TIMEVAL
# define ELAPSED_INIT(v) gettimeofday(&v, NULL)
# define ELAPSED_FUNC(v) elapsed(&v)
-# define ELAPSED_TYPE struct timeval
- long elapsed(struct timeval *start_tv);
-#else
-# if defined(WIN32)
-# define ELAPSED_TICKCOUNT
-# define ELAPSED_INIT(v) v = GetTickCount()
-# define ELAPSED_FUNC(v) elapsed(v)
-# define ELAPSED_TYPE DWORD
-# ifndef PROTO
- long elapsed(DWORD start_tick);
-# endif
+typedef struct timeval elapsed_T;
+long elapsed(struct timeval *start_tv);
+#elif defined(WIN32)
+# define ELAPSED_TICKCOUNT
+# define ELAPSED_INIT(v) v = GetTickCount()
+# define ELAPSED_FUNC(v) elapsed(v)
+typedef DWORD elapsed_T;
+# ifndef PROTO
+long elapsed(DWORD start_tick);
# endif
#endif