]> git.sesse.net Git - vlc/blobdiff - include/vlc_fs.h
Remove pf_run
[vlc] / include / vlc_fs.h
index 99c2d8729214f3675e5538285207945566e6054b..c37fa9ade9ac56eb368bdd96b7c03e894d8fcd63 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;
@@ -66,8 +63,23 @@ static inline void vlc_rewinddir( DIR *dir )
 }
 # undef rewinddir
 # define rewinddir vlc_rewinddir
+
+# include <sys/stat.h>
+# ifndef stat
+#  define stat _stati64
+# endif
+# ifndef fstat
+#  define fstat _fstati64
+# endif
+#define lseek _lseeki64
+#endif
+
+#ifdef __ANDROID__
+# define lseek lseek64
 #endif
 
+struct stat;
+
 VLC_API int vlc_stat( const char *filename, struct stat *buf );
 VLC_API int vlc_lstat( const char *filename, struct stat *buf );