Commit 9ce7c7d9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Move 'struct stat' forward declaration where actually needed

parent eb98fb58
...@@ -388,7 +388,6 @@ typedef struct update_iterator_t update_iterator_t; ...@@ -388,7 +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;
/* stat/lstat/fstat */
#ifdef WIN32 #ifdef WIN32
# include <sys/stat.h> # include <sys/stat.h>
...@@ -397,10 +396,6 @@ struct _stati64; ...@@ -397,10 +396,6 @@ struct _stati64;
# define stat _stati64 # define stat _stati64
# define fstat _fstati64 # define fstat _fstati64
#endif #endif
/* You should otherwise use vlc_stat and vlc_lstat. */
#else
struct stat;
#endif #endif
/** /**
......
...@@ -68,6 +68,8 @@ static inline void vlc_rewinddir( DIR *dir ) ...@@ -68,6 +68,8 @@ static inline void vlc_rewinddir( DIR *dir )
# define rewinddir vlc_rewinddir # define rewinddir vlc_rewinddir
#endif #endif
struct stat;
VLC_API int vlc_stat( const char *filename, struct stat *buf ); VLC_API int vlc_stat( const char *filename, struct stat *buf );
VLC_API int vlc_lstat( const char *filename, struct stat *buf ); VLC_API int vlc_lstat( const char *filename, struct stat *buf );
......
...@@ -121,6 +121,9 @@ void module_Unload (module_handle_t); ...@@ -121,6 +121,9 @@ void module_Unload (module_handle_t);
void CacheMerge (vlc_object_t *, module_t *, module_t *); void CacheMerge (vlc_object_t *, module_t *, module_t *);
void CacheDelete(vlc_object_t *, const char *); void CacheDelete(vlc_object_t *, const char *);
size_t CacheLoad (vlc_object_t *, const char *, module_cache_t **); size_t CacheLoad (vlc_object_t *, const char *, module_cache_t **);
struct stat;
int CacheAdd (module_cache_t **, size_t *, int CacheAdd (module_cache_t **, size_t *,
const char *, const struct stat *, module_t *); const char *, const struct stat *, module_t *);
void CacheSave (vlc_object_t *, const char *, module_cache_t *, size_t); void CacheSave (vlc_object_t *, const char *, module_cache_t *, size_t);
......
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