aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/macros.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-11 03:14:10 +0200
committerGitHub <noreply@github.com>2017-04-11 03:14:10 +0200
commit337299c8082347feecb5e733bed993c6a5933456 (patch)
treeb2f491c54f8ed3a4ed57e1b78bf907b918b8b34c /src/nvim/macros.h
parent9aface8c4d1edd25d4fed3e099e3c2c02b0a282a (diff)
parentde378477cc3ebface5da5dbd24015959755f137e (diff)
downloadrneovim-337299c8082347feecb5e733bed993c6a5933456.tar.gz
rneovim-337299c8082347feecb5e733bed993c6a5933456.tar.bz2
rneovim-337299c8082347feecb5e733bed993c6a5933456.zip
Merge #6490 from justinmk/test
Closes #6487
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r--src/nvim/macros.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h
index 22fd48de9d..9131f8be84 100644
--- a/src/nvim/macros.h
+++ b/src/nvim/macros.h
@@ -120,8 +120,10 @@
/* mch_open_rw(): invoke os_open() with third argument for user R/W. */
#if defined(UNIX) /* open in rw------- mode */
# define mch_open_rw(n, f) os_open((n), (f), (mode_t)0600)
+#elif defined(WIN32)
+# define mch_open_rw(n, f) os_open((n), (f), S_IREAD | S_IWRITE)
#else
-# define mch_open_rw(n, f) os_open((n), (f), 0)
+# define mch_open_rw(n, f) os_open((n), (f), 0)
#endif
# define REPLACE_NORMAL(s) (((s) & REPLACE_FLAG) && !((s) & VREPLACE_FLAG))