Changeset fb635e210354b1be0b04e2e1f941670036dae680

Show
Ignore:
Timestamp:
11/11/06 20:14:53 (2 years ago)
Author:
Damien Fouilleul <damienf@videolan.org>
git-committer:
Damien Fouilleul <damienf@videolan.org> 1163272493 +0000
git-parent:

[04cf4f559b33aeb0af223a7ee5c6fdb2b701c045]

git-author:
Damien Fouilleul <damienf@videolan.org> 1163272493 +0000
Message:

- access/file.c: fixed stat on win32, make sure the right stat structure is used, 'struct _stati64' on win32 and not 'struct stat'

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access/file.c

    r378c8be rfb635e2  
    5454/* fstat() support for large files on win32 */ 
    5555#   define fstat(a,b) _fstati64(a,b) 
     56#   define FILESTAT _stati64  
    5657#   ifdef lseek 
    5758#      undef lseek 
     
    6869#   endif 
    6970#   define lseek fseek 
     71#else 
     72#   define FILESTAT stat 
    7073#endif 
    7174 
     
    167170 
    168171#ifdef HAVE_SYS_STAT_H 
    169     struct stat st; 
     172    struct FILESTAT st; 
    170173 
    171174    while (fd != -1) 
     
    300303        (p_sys->i_nb_reads % INPUT_FSTAT_NB_READS) == 0 ) 
    301304    { 
    302         struct stat st; 
     305        struct FILESTAT st; 
    303306 
    304307        if ((fstat (fd, &st) == 0)