diff options
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/common.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index 7b23c3c..bbade55 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -44,9 +44,15 @@ #ifndef av_always_inline #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) # define av_always_inline __attribute__((always_inline)) inline -# define av_noinline __attribute__((noinline)) #else # define av_always_inline inline +#endif +#endif + +#ifndef av_noinline +#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) +# define av_noinline __attribute__((noinline)) +#else # define av_noinline #endif #endif |