mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit '8e2346154e6d58b733fd20326ce706f82fd91b3e'
* commit '8e2346154e6d58b733fd20326ce706f82fd91b3e': libavutil: Hook up the rest of the gcc specific attributes to clang as well Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
commit
072b14f390
@ -66,19 +66,19 @@
|
|||||||
# define av_noinline
|
# define av_noinline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AV_GCC_VERSION_AT_LEAST(3,1)
|
#if AV_GCC_VERSION_AT_LEAST(3,1) || defined(__clang__)
|
||||||
# define av_pure __attribute__((pure))
|
# define av_pure __attribute__((pure))
|
||||||
#else
|
#else
|
||||||
# define av_pure
|
# define av_pure
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AV_GCC_VERSION_AT_LEAST(2,6)
|
#if AV_GCC_VERSION_AT_LEAST(2,6) || defined(__clang__)
|
||||||
# define av_const __attribute__((const))
|
# define av_const __attribute__((const))
|
||||||
#else
|
#else
|
||||||
# define av_const
|
# define av_const
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AV_GCC_VERSION_AT_LEAST(4,3)
|
#if AV_GCC_VERSION_AT_LEAST(4,3) || defined(__clang__)
|
||||||
# define av_cold __attribute__((cold))
|
# define av_cold __attribute__((cold))
|
||||||
#else
|
#else
|
||||||
# define av_cold
|
# define av_cold
|
||||||
@ -138,19 +138,19 @@
|
|||||||
# define av_used
|
# define av_used
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if AV_GCC_VERSION_AT_LEAST(3,3)
|
#if AV_GCC_VERSION_AT_LEAST(3,3) || defined(__clang__)
|
||||||
# define av_alias __attribute__((may_alias))
|
# define av_alias __attribute__((may_alias))
|
||||||
#else
|
#else
|
||||||
# define av_alias
|
# define av_alias
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__)
|
#if (defined(__GNUC__) || defined(__clang__)) && !defined(__INTEL_COMPILER)
|
||||||
# define av_uninit(x) x=x
|
# define av_uninit(x) x=x
|
||||||
#else
|
#else
|
||||||
# define av_uninit(x) x
|
# define av_uninit(x) x
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
# define av_builtin_constant_p __builtin_constant_p
|
# define av_builtin_constant_p __builtin_constant_p
|
||||||
# define av_printf_format(fmtpos, attrpos) __attribute__((__format__(__printf__, fmtpos, attrpos)))
|
# define av_printf_format(fmtpos, attrpos) __attribute__((__format__(__printf__, fmtpos, attrpos)))
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user