Diego Biurrun <[email protected]> writes:

> On some platforms the -std=c99 gcc option hides certain functions from system
> header files because the option turns on the __STRICT_ANSI__ preprocessor 
> flag.
>
> Unset the flag globally if doing so makes these system functions visible.
> ---
>  configure |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index efdd647..5d97a64 100755
> --- a/configure
> +++ b/configure
> @@ -2326,6 +2326,9 @@ fi
>  
>  add_cppflags -D_ISOC99_SOURCE
>  check_cflags -std=c99
> +if ! check_func atoll; then
> +    check_func atoll -U__STRICT_ANSI__ && add_cppflags -U__STRICT_ANSI__
> +fi

Why that function?  atoll() is a standard C function so even retarded
headers should provide a declaration in the strictest mode.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to