[vlc-devel] [PATCH] Fix issues with replaced compat functions in C++ modules

Rémi Denis-Courmont remi at remlab.net
Tue Aug 26 21:38:01 CEST 2014


Le mardi 26 août 2014, 18:55:57 Jean-Baptiste Kempf a écrit :
> ---
>  include/vlc_fixups.h | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
> index c3d5fac..b9e1fdf 100644
> --- a/include/vlc_fixups.h
> +++ b/include/vlc_fixups.h
> @@ -194,10 +194,6 @@ int (dirfd) (DIR *);
>  DIR *fdopendir (int);
>  #endif
> 
> -#ifdef __cplusplus
> -} /* extern "C" */
> -#endif
> -
>  /* stdlib.h */
>  #ifndef HAVE_GETENV
>  static inline char *getenv (const char *name)
> @@ -339,6 +335,10 @@ long jrand48 (unsigned short subi[3]);
>  long nrand48 (unsigned short subi[3]);
>  #endif
> 
> +#ifdef __cplusplus
> +} /* extern "C" */
> +#endif

I have not checked the specifications but I doubt that
'extern "C" static inline' would be a valid combination of qualifiers.

-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list