mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
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>
This commit is contained in:

committed by
Justin M. Keyes

parent
8f6ecc4089
commit
657d274520
@@ -97,15 +97,9 @@
|
|||||||
*/
|
*/
|
||||||
#define vim_isbreak(c) (breakat_flags[(char_u)(c)])
|
#define vim_isbreak(c) (breakat_flags[(char_u)(c)])
|
||||||
|
|
||||||
#ifdef BINARY_FILE_IO
|
#define WRITEBIN "wb" /* no CR-LF translation */
|
||||||
# define WRITEBIN "wb" /* no CR-LF translation */
|
#define READBIN "rb"
|
||||||
# define READBIN "rb"
|
#define APPENDBIN "ab"
|
||||||
# define APPENDBIN "ab"
|
|
||||||
#else
|
|
||||||
# define WRITEBIN "w"
|
|
||||||
# define READBIN "r"
|
|
||||||
# define APPENDBIN "a"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
# define mch_fopen(n, p) fopen((n), (p))
|
# define mch_fopen(n, p) fopen((n), (p))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user