]> git.sesse.net Git - vlc/commitdiff
* vlc_common.c: forward declaration of dirent for vlc_symbols.h
authorCyril Deguet <asmax@videolan.org>
Sat, 6 Aug 2005 19:36:54 +0000 (19:36 +0000)
committerCyril Deguet <asmax@videolan.org>
Sat, 6 Aug 2005 19:36:54 +0000 (19:36 +0000)
include/vlc_common.h

index 617ccbc6d277b8e604d291933cbcb065fc65e100..689df9db9dc3515345b0bb61f5b2319ddd121c1d 100644 (file)
@@ -916,10 +916,13 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw )
     VLC_EXPORT( void *, vlc_opendir, ( const char * ) );
     VLC_EXPORT( void *, vlc_readdir, ( void * ) );
     VLC_EXPORT( int, vlc_closedir, ( void * ) );
-#elif !defined(__PLUGIN__)
-#   define vlc_opendir  NULL
-#   define vlc_readdir  NULL
-#   define vlc_closedir NULL
+#else
+    struct dirent;  /* forward declaration for vlc_symbols.h */
+#   if !defined(__PLUGIN__)
+#       define vlc_opendir  NULL
+#       define vlc_readdir  NULL
+#       define vlc_closedir NULL
+#   endif
 #endif
 
 /* Format type specifiers for 64 bits numbers */