diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-02 22:07:12 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-02 22:07:12 +0200 |
commit | b6843a007da9c06bd8f9491cc12e5e0afd858f33 (patch) | |
tree | 2199b430eb6cc5d9800ea9e82a43c9d527d0d148 /src/macros.h | |
parent | fae428354213b54626ff9e29faa5fd86161da942 (diff) | |
download | vim-git-b6843a007da9c06bd8f9491cc12e5e0afd858f33.tar.gz |
patch 8.0.0840: MS-Windows: fopen() and open() prototypes are wrongv8.0.0840
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.
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/macros.h b/src/macros.h index d75d19072..c320a3f7d 100644 --- a/src/macros.h +++ b/src/macros.h @@ -191,9 +191,6 @@ # ifndef WIN32 # define mch_access(n, p) access((n), (p)) # endif -# if !(defined(FEAT_MBYTE) && defined(WIN3264)) -# define mch_fopen(n, p) fopen((n), (p)) -# endif # define mch_fstat(n, p) fstat((n), (p)) # ifdef MSWIN /* has it's own mch_stat() function */ # define mch_stat(n, p) vim_stat((n), (p)) @@ -223,10 +220,6 @@ * but it is not recommended, because it can destroy indexes etc. */ # define mch_open(n, m, p) open(vms_fixfilename(n), (m), (p)) -# else -# if !(defined(FEAT_MBYTE) && defined(WIN3264)) -# define mch_open(n, m, p) open((n), (m), (p)) -# endif # endif #endif |