#if defined( WIN32 ) || defined( UNDER_CE )
# define DIR_SEP_CHAR '\\'
# define DIR_SEP "\\"
+# define PATH_SEP_CHAR ';'
+# define PATH_SEP ";"
#else
# define DIR_SEP_CHAR '/'
# define DIR_SEP "/"
+# define PATH_SEP_CHAR ':'
+# define PATH_SEP ":"
#endif
#define PLUGIN_PATH_TEXT N_("Modules search path")
#define PLUGIN_PATH_LONGTEXT N_( \
"Additional path for VLC to look for its modules. You can add " \
- "several paths by concatenating them using ':' as separator")
+ "several paths by concatenating them using " PATH_SEP " as separator")
#define VLM_CONF_TEXT N_("VLM configuration file")
#define VLM_CONF_LONGTEXT N_( \
{
char *psz_fullpath;
- /* Look for a ':' */
- for( psz_iter = ppsz_path; *psz_iter && *psz_iter != ':'; psz_iter++ );
+ /* Look for PATH_SEP_CHAR (a ':' or a ';') */
+ for( psz_iter = ppsz_path; *psz_iter && *psz_iter != PATH_SEP_CHAR; psz_iter++ );
if( !*psz_iter ) end = true;
else *psz_iter = 0;
/* Handle relative as well as absolute paths */
#ifdef WIN32
- if( ppsz_path[0] != '\\' && ppsz_path[0] != '/' )
+ if( ppsz_path[0] != '\\' && ppsz_path[0] != '/' && ppsz_path[0] != ':' )
#else
if( ppsz_path[0] != '/' )
#endif