mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user