#if defined( WIN32 ) && !defined( UNDER_CE )
/* fstat() support for large files on win32 */
# define fstat(a,b) _fstati64(a,b)
+# define FILESTAT _stati64
# ifdef lseek
# undef lseek
# endif
# undef lseek
# endif
# define lseek fseek
+#else
+# define FILESTAT stat
#endif
#include "charset.h"
fd = open_file (p_access, p_access->psz_path);
#ifdef HAVE_SYS_STAT_H
- struct stat st;
+ struct FILESTAT st;
while (fd != -1)
{
if( p_access->info.i_size != 0 &&
(p_sys->i_nb_reads % INPUT_FSTAT_NB_READS) == 0 )
{
- struct stat st;
+ struct FILESTAT st;
if ((fstat (fd, &st) == 0)
&& (p_access->info.i_size != st.st_size))