]> git.sesse.net Git - vlc/commitdiff
Move 'struct stat' forward declaration where actually needed
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 27 Jan 2012 20:59:26 +0000 (22:59 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 27 Jan 2012 21:31:49 +0000 (23:31 +0200)
include/vlc_common.h
include/vlc_fs.h
src/modules/modules.h

index 1c64ecd58f7c7ba9d99c1b5570c1833a97ca4c8f..481f4cdfc38d5a6e2347e103d58a54b60c14fa5f 100644 (file)
@@ -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
 
 /**
index 99c2d8729214f3675e5538285207945566e6054b..d8a54ed28b3d3d4a625d58d3261d5ebd98e15d6b 100644 (file)
@@ -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 );
 
index e9b1297d697c994ccad5e81ba6b58c7aad318092..a87056083e79e25ef62194f0698ca51623225a14 100644 (file)
@@ -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);