Patch 8.2.1370

4 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 5, 2020, 6:11:28 AM8/5/20
to vim...@googlegroups.com

Patch 8.2.1370
Problem: MS-Windows: warning for using fstat() with stat_T.
Solution: use _fstat64() if available. (Naruhiko Nishino, closes #6625)
Files: src/macros.h


*** ../vim-8.2.1369/src/macros.h 2020-06-09 19:34:51.485836791 +0200
--- src/macros.h 2020-08-05 12:06:21.563550262 +0200
***************
*** 166,172 ****
# ifndef MSWIN
# define mch_access(n, p) access((n), (p))
# endif
! # define mch_fstat(n, p) fstat((n), (p))
# ifdef MSWIN // has its own mch_stat() function
# define mch_stat(n, p) vim_stat((n), (p))
# else
--- 166,180 ----
# ifndef MSWIN
# define mch_access(n, p) access((n), (p))
# endif
!
! // 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
# define mch_stat(n, p) vim_stat((n), (p))
# else
*** ../vim-8.2.1369/src/version.c 2020-08-05 12:02:36.604150364 +0200
--- src/version.c 2020-08-05 12:08:46.795159451 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1370,
/**/

--
I'm writing a book. I've got the page numbers done.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages