]> git.sesse.net Git - vlc/commitdiff
Win32: do not redefine stat/fstat, fix piles of warnings
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 27 Jan 2012 21:09:17 +0000 (23:09 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 27 Jan 2012 21:31:49 +0000 (23:31 +0200)
MingW picks the correct version according to _FILE_OFFSET_BITS.
Of course, we use 64-bits offsets for large files.

include/vlc_common.h
include/vlc_fs.h

index 481f4cdfc38d5a6e2347e103d58a54b60c14fa5f..ac4b713b7576e552db3f000e5cf4842598e5f0e0 100644 (file)
@@ -388,16 +388,6 @@ typedef struct update_iterator_t update_iterator_t;
 /* Meta engine */
 typedef struct meta_engine_t meta_engine_t;
 
-#ifdef WIN32
-# include <sys/stat.h>
-
-# ifndef UNDER_CE
-struct _stati64;
-#  define stat _stati64
-#  define fstat _fstati64
-#endif
-#endif
-
 /**
  * VLC value structure
  */
index d8a54ed28b3d3d4a625d58d3261d5ebd98e15d6b..3c5c7a90fa53bada304294ab542bbd3c22de8497 100644 (file)
@@ -46,9 +46,6 @@ VLC_API int vlc_rename( const char *oldpath, const char *newpath );
 VLC_API char *vlc_getcwd( void ) VLC_USED;
 
 #if defined( WIN32 )
-# ifndef UNDER_CE
-#  define stat _stati64
-# endif
 static inline int vlc_closedir( DIR *dir )
 {
     _WDIR *wdir = *(_WDIR **)dir;