]> git.sesse.net Git - vlc/blobdiff - include/vlc_fs.h
libvlc: libvlc_MediaSubItemTreeAdded event type added
[vlc] / include / vlc_fs.h
index 94b85157b1d9d1c131259ead10a354a47b4893a5..e0fc4b561ab99a135a09f020b4d0a63bed40f9e9 100644 (file)
@@ -45,7 +45,7 @@ VLC_API int vlc_unlink( const char *filename );
 VLC_API int vlc_rename( const char *oldpath, const char *newpath );
 VLC_API char *vlc_getcwd( void ) VLC_USED;
 
-#if defined( WIN32 )
+#if defined( _WIN32 )
 static inline int vlc_closedir( DIR *dir )
 {
     _WDIR *wdir = *(_WDIR **)dir;
@@ -65,14 +65,18 @@ static inline void vlc_rewinddir( DIR *dir )
 # define rewinddir vlc_rewinddir
 
 # include <sys/stat.h>
-# ifndef UNDER_CE
-#  ifndef stat
-#   define stat _stati64
-#  endif
-#  ifndef fstat
-#   define fstat _fstati64
-#  endif
+# ifndef stat
+#  define stat _stati64
 # endif
+# ifndef fstat
+#  define fstat _fstati64
+# endif
+# undef lseek
+# define lseek _lseeki64
+#endif
+
+#ifdef __ANDROID__
+# define lseek lseek64
 #endif
 
 struct stat;