aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/win_defs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/os/win_defs.h b/src/nvim/os/win_defs.h
index 025833060a..c169dbfe83 100644
--- a/src/nvim/os/win_defs.h
+++ b/src/nvim/os/win_defs.h
@@ -21,6 +21,15 @@
// - SYS_VIMRC_FILE
// - SPECIAL_WILDCHAR
+#ifdef _MSC_VER
+# ifndef inline
+# define inline __inline
+# endif
+# ifndef restrict
+# define restrict __restrict
+# endif
+#endif
+
typedef SSIZE_T ssize_t;
#ifndef SSIZE_MAX