mirror of
https://github.com/vim/vim.git
synced 2025-11-14 23:04:02 -05:00
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)
This commit is contained in:
10
src/undo.c
10
src/undo.c
@@ -778,7 +778,7 @@ u_get_undo_file_name(char_u *buf_ffname, int reading)
|
||||
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, char_u *orig_name)
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user