]> git.sesse.net Git - vlc/commitdiff
- better fix for DIR typedef error
authorDamien Fouilleul <damienf@videolan.org>
Wed, 22 Nov 2006 12:48:17 +0000 (12:48 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Wed, 22 Nov 2006 12:48:17 +0000 (12:48 +0000)
include/vlc_common.h
include/vlc_symbols.h

index 85e6500966e10188e4cdcdd2ed6266b5a23c0c10..0fe001721f1d15c96f8aa396c7cd6d7fcb916707 100644 (file)
@@ -1149,6 +1149,9 @@ VLC_EXPORT( const char *, VLC_Error, ( int ) );
  * Additional vlc stuff
  *****************************************************************************/
 #ifndef HAVE_SHARED_LIBVLC
+#   ifdef HAVE_DIRENT_H
+#   include <dirent.h>  /* for DIR typedef in vlc_symbols.h */
+#   endif
 VLC_EXPORT( const char *, VLC_Changeset, ( void ) );
 #   include "vlc_symbols.h"
 #else
index d871303f8a917a7839d35931e624a47f43f5940a..66dd96974eb05c5459568c5b18344dc862e2ac16 100644 (file)
 #  error You are not supposed to include this file!
 # endif
 
-#include <stdio.h>      /* for FILE typedef */
-
-#ifdef HAVE_DIRENT_H
-#   include <dirent.h>  /* for DIR typedef */
-#else
-    typedef void DIR;
-#endif
-
 /*
  * This is the big VLC API structure for plugins :
  * Changing its layout breaks plugin's binary compatibility,