Browse Source

Move 'struct stat' forward declaration where actually needed

pull/2/head
Rémi Denis-Courmont 15 years ago
parent
commit
9ce7c7d986
  1. 5
      include/vlc_common.h
  2. 2
      include/vlc_fs.h
  3. 3
      src/modules/modules.h

5
include/vlc_common.h

@ -388,7 +388,6 @@ typedef struct update_iterator_t update_iterator_t;
/* Meta engine */
typedef struct meta_engine_t meta_engine_t;
/* stat/lstat/fstat */
#ifdef WIN32
# include <sys/stat.h>
@ -397,10 +396,6 @@ struct _stati64;
# define stat _stati64
# define fstat _fstati64
#endif
/* You should otherwise use vlc_stat and vlc_lstat. */
#else
struct stat;
#endif
/**

2
include/vlc_fs.h

@ -68,6 +68,8 @@ static inline void vlc_rewinddir( DIR *dir )
# define rewinddir vlc_rewinddir
#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 );

3
src/modules/modules.h

@ -121,6 +121,9 @@ void module_Unload (module_handle_t);
void CacheMerge (vlc_object_t *, module_t *, module_t *);
void CacheDelete(vlc_object_t *, const char *);
size_t CacheLoad (vlc_object_t *, const char *, module_cache_t **);
struct stat;
int CacheAdd (module_cache_t **, size_t *,
const char *, const struct stat *, module_t *);
void CacheSave (vlc_object_t *, const char *, module_cache_t *, size_t);

Loading…
Cancel
Save