Commit 5e40e69a authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* fix the defines for strcasecmp strncasecmp and strcasestr

parent f9f6da51
......@@ -726,42 +726,42 @@ static inline void _SetQWLE( uint8_t *p, uint64_t i_qw )
#endif
#ifndef HAVE_STRCASECMP
# ifdef HAVE_STRICMP
# ifndef HAVE_STRICMP
# define strcasecmp vlc_strcasecmp
VLC_EXPORT( int, vlc_strcasecmp, ( const char *s1, const char *s2 ) );
# else
# define strcasecmp stricmp
# if !defined(__PLUGIN__)
# define vlc_strcasecmp NULL
# endif
# elif !defined(__PLUGIN__)
# define strcasecmp vlc_strcasecmp
VLC_EXPORT( int, vlc_strcasecmp, ( const char *s1, const char *s2 ) );
# endif
#elif !defined(__PLUGIN__)
# define vlc_strcasecmp NULL
#endif
#ifndef HAVE_STRNCASECMP
# ifdef HAVE_STRNICMP
# ifndef HAVE_STRNICMP
# define strncasecmp vlc_strncasecmp
VLC_EXPORT( int, vlc_strncasecmp, ( const char *s1, const char *s2, size_t n ) );
# else
# define strncasecmp strnicmp
# if !defined(__PLUGIN__)
# define vlc_strncasecmp NULL
# endif
# elif !defined(__PLUGIN__)
# define strncasecmp vlc_strncasecmp
VLC_EXPORT( int, vlc_strncasecmp, ( const char *s1, const char *s2, size_t n ) );
# endif
#elif !defined(__PLUGIN__)
# define vlc_strncasecmp NULL
#endif
#ifndef HAVE_STRCASESTR
# ifdef HAVE_STRISTR
# ifndef HAVE_STRISTR
# define strcasestr vlc_strcasestr
VLC_EXPORT( char *, vlc_strcasestr, ( const char *s1, const char *s2 ) );
# else
# define strcasestr stristr
# if !defined(__PLUGIN__)
# define vlc_strcasestr NULL
# endif
# elif !defined(__PLUGIN__)
# define strcasestr vlc_strcasestr
VLC_EXPORT( char *, vlc_strcasestr, ( const char *s1, const char *s2 ) );
# endif
#elif !defined(__PLUGIN__)
# define vlc_strcasestr NULL
......
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