Commit 7ff25f98 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

vlc_fs: Fix win32 compilation

parent f96133f1
...@@ -27,6 +27,25 @@ ...@@ -27,6 +27,25 @@
struct stat; struct stat;
struct iovec; struct iovec;
#ifdef _WIN32
# include <sys/stat.h>
# ifndef stat
# define stat _stati64
# endif
# ifndef fstat
# define fstat _fstati64
# endif
# ifndef _MSC_VER
# undef lseek
# define lseek _lseeki64
# endif
#endif
#ifdef __ANDROID__
# define lseek lseek64
#endif
/** /**
* \defgroup os Operating system * \defgroup os Operating system
* @{ * @{
...@@ -244,18 +263,6 @@ static inline void vlc_rewinddir( DIR *dir ) ...@@ -244,18 +263,6 @@ static inline void vlc_rewinddir( DIR *dir )
} }
# undef rewinddir # undef rewinddir
# define rewinddir vlc_rewinddir # define rewinddir vlc_rewinddir
# include <sys/stat.h>
# ifndef stat
# define stat _stati64
# endif
# ifndef fstat
# define fstat _fstati64
# endif
# ifndef _MSC_VER
# undef lseek
# define lseek _lseeki64
# endif
#endif #endif
#ifdef __ANDROID__ #ifdef __ANDROID__
......
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