diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-01 17:17:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-01 17:17:39 +0200 |
commit | 8767f52fbfd4f053ce00a978227c95f1d7d323fe (patch) | |
tree | ac0cb33815d6e9d41f9b7a6b4ee4335e6076feaa /src/misc1.c | |
parent | 4a6c670b844a3ef9aec865a8216eaf363bab8721 (diff) | |
download | vim-git-8767f52fbfd4f053ce00a978227c95f1d7d323fe.tar.gz |
patch 7.4.1975v7.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)
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/misc1.c b/src/misc1.c index 796996893..82522b5cf 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -4056,7 +4056,7 @@ expand_env_esc( { char_u test[MAXPATHL], paths[MAXPATHL]; char_u *path, *next_path, *ptr; - struct stat st; + stat_T st; STRCPY(paths, USER_HOME); next_path = paths; @@ -4752,7 +4752,7 @@ fullpathcmp( char_u exp1[MAXPATHL]; char_u full1[MAXPATHL]; char_u full2[MAXPATHL]; - struct stat st1, st2; + stat_T st1, st2; int r1, r2; expand_env(s1, exp1, MAXPATHL); @@ -9500,7 +9500,7 @@ preserve_exit(void) int vim_fexists(char_u *fname) { - struct stat st; + stat_T st; if (mch_stat((char *)fname, &st)) return FALSE; @@ -10217,7 +10217,7 @@ unix_expandpath( } else { - struct stat sb; + stat_T sb; /* no more wildcards, check if there is a match */ /* remove backslashes for the remaining components only */ @@ -10972,7 +10972,7 @@ addfile( { char_u *p; int isdir; - struct stat sb; + stat_T sb; /* if the file/dir/link doesn't exist, may not add it */ if (!(flags & EW_NOTFOUND) && ((flags & EW_ALLLINKS) |