Commit bb29acd2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_wclosedir is still needed on Windows

parent 9194945a
......@@ -852,7 +852,9 @@ VLC_EXPORT( void *, vlc_memset, ( void *, int, size_t ) );
*****************************************************************************/
#ifdef WIN32
VLC_EXPORT( char *, vlc_dgettext, ( const char *package, const char *msgid ) );
VLC_EXPORT( int, vlc_wclosedir, (void *) );
#endif
VLC_EXPORT( char *, vlc_gettext, ( const char *msgid ) );
/*****************************************************************************
......
......@@ -136,6 +136,12 @@ typedef void *locale_t;
# define freelocale( a ) (void)0
#endif
#ifdef WIN32
# define opendir Use_utf8_opendir_or_vlc_wopendir_instead!
# define readdir Use_utf8_readdir_or_vlc_wreaddir_instead!
# define closedir vlc_wclosedir
#endif
/* libintl support */
#define _(str) vlc_gettext (str)
......
......@@ -281,11 +281,7 @@ void vlc_rewinddir(void *);
# include <dirent.h>
void *vlc_wopendir (const wchar_t *);
struct _wdirent *vlc_wreaddir (void *);
int vlc_wclosedir (void *);
void vlc_rewinddir (void *);
# define opendir Use_utf8_opendir_or_vlc_wopendir_instead!
# define readdir Use_utf8_readdir_or_vlc_wreaddir_instead!
# define closedir vlc_wclosedir
# define _wopendir vlc_wopendir
# define _wreaddir vlc_wreaddir
# define _wclosedir vlc_wclosedir
......
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