Mercurial > vim
diff src/undo.c @ 9387:f094d4085014 v7.4.1975
commit https://github.com/vim/vim/commit/8767f52fbfd4f053ce00a978227c95f1d7d323fe
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 1 17:17:39 2016 +0200
patch 7.4.1975
Problem: On MS-Windows large files (> 2Gbyte) cause problems.
Solution: Use "off_T" instead of "off_t". Use "stat_T" instead of "struct
stat". Use 64 bit system functions if available. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 01 Jul 2016 17:30:07 +0200 |
parents | 17bbbca531be |
children | b2aada04d84e |
line wrap: on
line diff
--- a/src/undo.c +++ b/src/undo.c @@ -778,7 +778,7 @@ u_get_undo_file_name(char_u *buf_ffname, char_u *undo_file_name = NULL; int dir_len; char_u *p; - struct stat st; + stat_T st; char_u *ffname = buf_ffname; #ifdef HAVE_READLINK char_u fname_buf[MAXPATHL]; @@ -1522,8 +1522,8 @@ u_write_undo( int write_ok = FALSE; #ifdef UNIX int st_old_valid = FALSE; - struct stat st_old; - struct stat st_new; + stat_T st_old; + stat_T st_new; #endif bufinfo_T bi; @@ -1804,8 +1804,8 @@ u_read_undo(char_u *name, char_u *hash, int *uhp_table_used; #endif #ifdef UNIX - struct stat st_orig; - struct stat st_undo; + stat_T st_orig; + stat_T st_undo; #endif bufinfo_T bi;