]> git.sesse.net Git - vlc/commitdiff
Do not export vlc_wclosedir()
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 3 Aug 2010 16:16:45 +0000 (19:16 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 3 Aug 2010 16:21:34 +0000 (19:21 +0300)
include/vlc_common.h
include/vlc_fixups.h
src/extras/libc.c
src/libvlc.h
src/libvlccore.sym
src/misc/block.c
src/text/strings.c
src/text/unicode.c

index 20dfbc9e8fbeac4243d67ae4dfbfe74010e414bd..68db9252301d26787406cf28ff5615bfff328859 100644 (file)
@@ -845,9 +845,6 @@ VLC_EXPORT( int, vlc_iconv_close, ( vlc_iconv_t ) );
 VLC_EXPORT( int, vlc_execve, ( vlc_object_t *p_object, int i_argc, char *const *pp_argv, char *const *pp_env, const char *psz_cwd, const char *p_in, size_t i_in, char **pp_data, size_t *pi_data ) LIBVLC_USED );
 #define vlc_execve(a,b,c,d,e,f,g,h,i) vlc_execve(VLC_OBJECT(a),b,c,d,e,f,g,h,i)
 
-/* dir wrappers (defined in src/extras/libc.c) */
-VLC_EXPORT(int, vlc_wclosedir, ( void *_p_dir ));
-
 VLC_EXPORT( void, vlc_tdestroy, ( void *, void (*)(void *) ) );
 
 /* Fast large memory copy and memory set */
index 25102fa3f6c92dfdf1eda4ebf73d6e703846ab73..46da6ae1267cc3a2b73a2b6fbdc75612c4d7e849 100644 (file)
@@ -197,13 +197,6 @@ static inline locale_t newlocale(int mask, const char * locale, locale_t base)
 }
 #endif
 
-#ifdef WIN32
-# include <dirent.h>
-# define opendir Use_vlc_opendir_or_vlc_wopendir_instead!
-# define readdir Use_vlc_readdir_or_vlc_wreaddir_instead!
-# define closedir vlc_wclosedir
-#endif
-
 /* libintl support */
 #define _(str)            vlc_gettext (str)
 #define N_(str)           gettext_noop (str)
index b0d17d191c4c0fdde046615178f3da71b2173d1f..1636018e5877a850dc9ffac2a5a0298f371a551c 100644 (file)
@@ -32,7 +32,6 @@
 #include <vlc_common.h>
 
 #include <errno.h>
-#include <dirent.h>
 
 #undef iconv_t
 #undef iconv_open
 #endif
 
 #if defined(WIN32) || defined(UNDER_CE)
-#   undef _wopendir
-#   undef _wreaddir
-#   undef _wclosedir
-#   undef rewinddir
 #   define WIN32_LEAN_AND_MEAN
 #   include <windows.h>
+#   include <dirent.h>
 #endif
 
 /*****************************************************************************
@@ -167,12 +163,10 @@ void vlc_rewinddir( void *_p_dir )
     if ( p_dir->p_real_dir != NULL )
         _wrewinddir( p_dir->p_real_dir );
 }
-#endif
 
 /* This one is in the libvlccore exported symbol list */
 int vlc_wclosedir( void *_p_dir )
 {
-#if defined(WIN32)
     vlc_DIR *p_dir = (vlc_DIR *)_p_dir;
     int i_ret = 0;
 
@@ -181,10 +175,9 @@ int vlc_wclosedir( void *_p_dir )
 
     free( p_dir );
     return i_ret;
-#else
-    return closedir( _p_dir );
-#endif
 }
+#endif
+
 
 #ifdef ENABLE_NLS
 # include <libintl.h>
index 89824146bd299ee4c81f297e41776472687a3dff..02bdfaaddbd6eb80de2d72d920015bbd18715ff1 100644 (file)
@@ -330,7 +330,7 @@ VLC_EXPORT( void, stats_DumpInputStats, (input_stats_t *) );
 #if defined (WIN32)
 #   include <dirent.h>
 void *vlc_wopendir (const wchar_t *);
-/* void *vlc_wclosedir (void *); in vlc's exported symbols */
+void *vlc_wclosedir (void *);
 struct _wdirent *vlc_wreaddir (void *);
 void vlc_rewinddir (void *);
 #   define _wopendir vlc_wopendir
index 494dd3547b8cb369a8b8683d40b8282d7449691e..6b293c8adc30641c28820b840ad0a78f34f0b5ab 100644 (file)
@@ -615,7 +615,6 @@ vlc_timer_getoverrun
 vlc_timer_schedule
 vlc_ureduce
 VLC_Version
-vlc_wclosedir
 vlc_epg_Init
 vlc_epg_Clean
 vlc_epg_New
index 7649d7a958b69824caad03a43207a77e16542b31..efa4fce3271774de7be0585d5545d6dad3b53f51 100644 (file)
@@ -362,6 +362,7 @@ block_t *block_mmap_Alloc (void *addr, size_t length)
 
 
 #ifdef WIN32
+# include <io.h>
 #ifdef UNDER_CE
 #define _get_osfhandle(a) ((long) (a))
 #endif
index a53907d655bed735590cf297fd8620590f321cfb..096f72df58709d9487d07524361dbf7d393b7fc9 100644 (file)
@@ -1026,6 +1026,9 @@ void path_sanitize( char *str )
 }
 
 #include <vlc_url.h>
+#ifdef WIN32
+# include <io.h>
+#endif
 
 /**
  * Convert a file path to an URI.
index b9b0c49f7602912a5c6e2b174286cab91236a094..cbbe53222e4027a9299518bad86b02e947c4b4a9 100644 (file)
@@ -47,6 +47,7 @@
 
 #elif defined (WIN32) || defined (UNDER_CE)
 # define USE_MB2MB 1
+# include <io.h>
 
 static char *locale_dup (const char *string, bool from)
 {