mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.1370: MS-Windows: warning for using fstat() with stat_T
Problem: MS-Windows: warning for using fstat() with stat_T. Solution: use _fstat64() if available. (Naruhiko Nishino, closes #6625)
This commit is contained in:
parent
14ddd226da
commit
c753478b82
10
src/macros.h
10
src/macros.h
@ -166,7 +166,15 @@
|
|||||||
# ifndef MSWIN
|
# ifndef MSWIN
|
||||||
# define mch_access(n, p) access((n), (p))
|
# define mch_access(n, p) access((n), (p))
|
||||||
# endif
|
# endif
|
||||||
# define mch_fstat(n, p) fstat((n), (p))
|
|
||||||
|
// Use 64-bit fstat function if available.
|
||||||
|
// NOTE: This condition is the same as for the stat_T type.
|
||||||
|
# if (defined(_MSC_VER) && (_MSC_VER >= 1300)) || defined(__MINGW32__)
|
||||||
|
# define mch_fstat(n, p) _fstat64((n), (p))
|
||||||
|
# else
|
||||||
|
# define mch_fstat(n, p) fstat((n), (p))
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef MSWIN // has its own mch_stat() function
|
# ifdef MSWIN // has its own mch_stat() function
|
||||||
# define mch_stat(n, p) vim_stat((n), (p))
|
# define mch_stat(n, p) vim_stat((n), (p))
|
||||||
# else
|
# else
|
||||||
|
@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1370,
|
||||||
/**/
|
/**/
|
||||||
1369,
|
1369,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user