[vlc-devel] commit: vlc_fixups.h : get NULL declaration when needed ( Rafaël Carré )

Rémi Denis-Courmont remi at remlab.net
Fri Aug 28 10:32:02 CEST 2009


NULL is in stddef.h normally.

----- Message d'origine -----
> vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Fri Aug 28
> 10:22:50 2009 +0200| [db4c71601807582f3d0ee8f672d7b1a31105871b] | committer:
> Rafaël Carré 
> 
> vlc_fixups.h : get NULL declaration when needed
> 
> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db4c71601807582f3d0ee8f672d7b1a31105871b
> ---
> 
>  include/vlc_fixups.h |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
> index 24d3069..4c241d5 100644
> --- a/include/vlc_fixups.h
> +++ b/include/vlc_fixups.h
> @@ -38,6 +38,11 @@ typedef struct
>  } lldiv_t;
>  #endif
> 
> +#if !defined(HAVE_GETENV) || \
> +    !defined(HAVE_USELOCALE)
> +# include <stdlib.h> /* NULL */
> +#endif
> +
>  #ifndef HAVE_REWIND
>  # include <stdio.h> /* FILE */
>  #endif
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel




More information about the vlc-devel mailing list