[FFmpeg-devel] [PATCH] Make sure strcasecmp() is declared.

Måns Rullgård mans
Fri Oct 3 01:21:09 CEST 2008


Diego 'Flameeyes' Petten? <flameeyes at gmail.com> writes:

> On recent glibc versions strings.h is not included by default, so the
> compiler will issue a warning for implicit declaration of
> strcasecmp().
> ---
>
>  vhook/imlib2.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/vhook/imlib2.c b/vhook/imlib2.c
> index 49a5bb2..e371f38 100644
> --- a/vhook/imlib2.c
> +++ b/vhook/imlib2.c
> @@ -53,6 +53,7 @@
>  #include <fcntl.h>
>  #include <stdarg.h>
>  #include <string.h>
> +#include <strings.h>
>  #include <unistd.h>
>  #undef time
>  #include <sys/time.h>

OK by me, but I'm not maintainer of that file.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list