[vlc-commits] Win32: do not redefine stat/fstat, fix piles of warnings

Rémi Denis-Courmont git at videolan.org
Fri Jan 27 22:31:56 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jan 27 23:09:17 2012 +0200| [359e03c3cc083859527b4c6543e4b8519fa08081] | committer: Rémi Denis-Courmont

Win32: do not redefine stat/fstat, fix piles of warnings

MingW picks the correct version according to _FILE_OFFSET_BITS.
Of course, we use 64-bits offsets for large files.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=359e03c3cc083859527b4c6543e4b8519fa08081
---

 include/vlc_common.h |   10 ----------
 include/vlc_fs.h     |    3 ---
 2 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 481f4cd..ac4b713 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -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
  */
diff --git a/include/vlc_fs.h b/include/vlc_fs.h
index d8a54ed..3c5c7a9 100644
--- a/include/vlc_fs.h
+++ b/include/vlc_fs.h
@@ -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;



More information about the vlc-commits mailing list