aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2015-03-18 07:44:17 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-03-18 04:42:39 -0400
commit657d274520e422f8b590ee8e5b8ae3d8bf96b02b (patch)
tree9f346e2600a1bccb171c382b598404777dc8b1e9
parent8f6ecc40894174f8c100a2f012a0199fada62c27 (diff)
downloadrneovim-657d274520e422f8b590ee8e5b8ae3d8bf96b02b.tar.gz
rneovim-657d274520e422f8b590ee8e5b8ae3d8bf96b02b.tar.bz2
rneovim-657d274520e422f8b590ee8e5b8ae3d8bf96b02b.zip
Remove BINARY_FILE_IO option #2179
The 'binary' mode flag is ignored on all POSIX conforming systems (man 3 fopen). For all the others, BINARY_FILE_IO needs to be set. Always set BINARY_FILE_IO. Signed-off-by: Perry Hung <iperry@gmail.com>
-rw-r--r--src/nvim/macros.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h
index 7dd8120d09..653f46fb44 100644
--- a/src/nvim/macros.h
+++ b/src/nvim/macros.h
@@ -97,15 +97,9 @@
*/
#define vim_isbreak(c) (breakat_flags[(char_u)(c)])
-#ifdef BINARY_FILE_IO
-# define WRITEBIN "wb" /* no CR-LF translation */
-# define READBIN "rb"
-# define APPENDBIN "ab"
-#else
-# define WRITEBIN "w"
-# define READBIN "r"
-# define APPENDBIN "a"
-#endif
+#define WRITEBIN "wb" /* no CR-LF translation */
+#define READBIN "rb"
+#define APPENDBIN "ab"
# define mch_fopen(n, p) fopen((n), (p))