changeset 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 142c46991ec0
files src/ex_cmds2.c src/version.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -2814,11 +2814,11 @@ static FILE *fopen_noinh_readbin __ARGS(
 fopen_noinh_readbin(filename)
     char    *filename;
 {
-    int	fd_tmp = mch_open(filename, O_RDONLY
 # ifdef WIN32
-			  | O_BINARY | O_NOINHERIT
+    int	fd_tmp = mch_open(filename, O_RDONLY | O_BINARY | O_NOINHERIT, 0);
+# else
+    int	fd_tmp = mch_open(filename, O_RDONLY, 0);
 # endif
-			  , 0);
 
     if (fd_tmp == -1)
 	return NULL;
--- a/src/version.c
+++ b/src/version.c
@@ -682,6 +682,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    344,
+/**/
     343,
 /**/
     342,