1
0
forked from aniani/vim

patch 8.0.0840: MS-Windows: fopen() and open() prototypes are wrong

Problem:    MS-Windows: fopen() and open() prototypes do not match the ones in
            the system header file.  Can't build without FEAT_MBYTE.
Solution:   Add "const".  Move macro to after including protoo.h.
This commit is contained in:
Bram Moolenaar
2017-08-02 22:07:12 +02:00
parent fae4283542
commit b6843a007d
5 changed files with 13 additions and 11 deletions

View File

@@ -2141,6 +2141,11 @@ typedef enum {
# define number_width(x) 7
#endif
/* This must come after including proto.h */
#if !(defined(FEAT_MBYTE) && defined(WIN3264))
# define mch_open(n, m, p) open((n), (m), (p))
# define mch_fopen(n, p) fopen((n), (p))
#endif
#include "globals.h" /* global variables and messages */