From 7c5b76166022babcb1519c0aa038867b3f5f7d06 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Tue, 15 Jun 2004 14:43:26 +0000 Subject: [PATCH] * vlc_strcasestr defines (still missing something. still can't find it) --- include/vlc_common.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/include/vlc_common.h b/include/vlc_common.h index 3c0c4d4cf9..bd43140357 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -2,7 +2,7 @@ * common.h: common definitions * Collection of useful common types and macros definitions ***************************************************************************** - * Copyright (C) 1998, 1999, 2000 VideoLAN + * Copyright (C) 1998-2004 VideoLAN * $Id$ * * Authors: Samuel Hocevar @@ -753,6 +753,20 @@ static inline void _SetQWLE( uint8_t *p, uint64_t i_qw ) # define vlc_strncasecmp NULL #endif +#ifndef HAVE_STRCASESTR +# ifdef HAVE_STRISTR +# 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 +#endif + /* Format type specifiers for 64 bits numbers */ #if !defined(WIN32) && !defined(UNDER_CE) # define I64Fd "%lld" -- GitLab