Commit 9139d783 authored by Steve Lhomme's avatar Steve Lhomme

mkv.cpp: fix dirent issue with the recent "fixes"

parent e2d3cfa4
...@@ -47,6 +47,12 @@ ...@@ -47,6 +47,12 @@
#ifdef HAVE_DIRENT_H #ifdef HAVE_DIRENT_H
# include <dirent.h> # include <dirent.h>
#else if defined(MSCVER)
extern "C" {
void * vlc_opendir ( const char * ) ;
void * vlc_readdir ( void * );
int vlc_closedir ( void * ) ;
}
#endif #endif
/* libebml and matroska */ /* libebml and matroska */
...@@ -598,7 +604,7 @@ static int Open( vlc_object_t * p_this ) ...@@ -598,7 +604,7 @@ static int Open( vlc_object_t * p_this )
if (p_src_dir != NULL) if (p_src_dir != NULL)
{ {
while ((p_file_item = readdir(p_src_dir))) while ((p_file_item = (dirent *) readdir(p_src_dir)))
{ {
if (strlen(p_file_item->d_name) > 4) if (strlen(p_file_item->d_name) > 4)
{ {
......
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