Mercurial > vim
comparison src/ex_cmds2.c @ 2058:fb1222c880fc v7.2.344
updated for version 7.2.344
Problem: Can't compile on some systems
Solution: Move the #ifdef outside of the mch_open macro. (Patrick Texier)
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Wed, 20 Jan 2010 21:41:47 +0100 |
parents | f815aad6c055 |
children | 98a2a6e6b966 |
comparison
equal
deleted
inserted
replaced
2057:f815aad6c055 | 2058:fb1222c880fc |
---|---|
2812 */ | 2812 */ |
2813 static FILE * | 2813 static FILE * |
2814 fopen_noinh_readbin(filename) | 2814 fopen_noinh_readbin(filename) |
2815 char *filename; | 2815 char *filename; |
2816 { | 2816 { |
2817 int fd_tmp = mch_open(filename, O_RDONLY | |
2818 # ifdef WIN32 | 2817 # ifdef WIN32 |
2819 | O_BINARY | O_NOINHERIT | 2818 int fd_tmp = mch_open(filename, O_RDONLY | O_BINARY | O_NOINHERIT, 0); |
2820 # endif | 2819 # else |
2821 , 0); | 2820 int fd_tmp = mch_open(filename, O_RDONLY, 0); |
2821 # endif | |
2822 | 2822 |
2823 if (fd_tmp == -1) | 2823 if (fd_tmp == -1) |
2824 return NULL; | 2824 return NULL; |
2825 | 2825 |
2826 # ifdef HAVE_FD_CLOEXEC | 2826 # ifdef HAVE_FD_CLOEXEC |