Commit 359e03c3 authored by Rémi Denis-Courmont's avatar 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.
parent 75d005cf
...@@ -388,16 +388,6 @@ typedef struct update_iterator_t update_iterator_t; ...@@ -388,16 +388,6 @@ typedef struct update_iterator_t update_iterator_t;
/* Meta engine */ /* Meta engine */
typedef struct meta_engine_t meta_engine_t; 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 * VLC value structure
*/ */
......
...@@ -46,9 +46,6 @@ VLC_API int vlc_rename( const char *oldpath, const char *newpath ); ...@@ -46,9 +46,6 @@ VLC_API int vlc_rename( const char *oldpath, const char *newpath );
VLC_API char *vlc_getcwd( void ) VLC_USED; VLC_API char *vlc_getcwd( void ) VLC_USED;
#if defined( WIN32 ) #if defined( WIN32 )
# ifndef UNDER_CE
# define stat _stati64
# endif
static inline int vlc_closedir( DIR *dir ) static inline int vlc_closedir( DIR *dir )
{ {
_WDIR *wdir = *(_WDIR **)dir; _WDIR *wdir = *(_WDIR **)dir;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment