On 2016-11-13 19:27:33 +0100, Diego Biurrun wrote:

the subject is a little unspecific. "golomb: replace __PRETTY_FUNCTION__ 
with __func__ for tracing"

> The former is a GNU extension and for C both work the same at least 
> for gcc.

__func__ is specified in C99/C++11 to this behavior. Since this is 
optionally tracing code requiring a C99 compiler shouldn't cause 
problems.

> ---
>  libavcodec/golomb.h | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h
> index bf80fae..9fafbcd 100644
> --- a/libavcodec/golomb.h
> +++ b/libavcodec/golomb.h
> @@ -449,10 +449,10 @@ static inline int get_te(GetBitContext *s, int r, char 
> *file, const char *func,
>      return i;
>  }
>  
> -#define get_ue_golomb(a) get_ue(a, __FILE__, __PRETTY_FUNCTION__, __LINE__)
> -#define get_se_golomb(a) get_se(a, __FILE__, __PRETTY_FUNCTION__, __LINE__)
> -#define get_te_golomb(a, r)  get_te(a, r, __FILE__, __PRETTY_FUNCTION__, 
> __LINE__)
> -#define get_te0_golomb(a, r) get_te(a, r, __FILE__, __PRETTY_FUNCTION__, 
> __LINE__)
> +#define get_ue_golomb(a) get_ue(a, __FILE__, __func__, __LINE__)
> +#define get_se_golomb(a) get_se(a, __FILE__, __func__, __LINE__)
> +#define get_te_golomb(a, r)  get_te(a, r, __FILE__, __func__, __LINE__)
> +#define get_te0_golomb(a, r) get_te(a, r, __FILE__, __func__, __LINE__)

patch ok with the commit message fixed

Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to