diff options
Diffstat (limited to 'libavutil/common.h')
-rw-r--r-- | libavutil/common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index d2489e3f32..4b195776bf 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -73,6 +73,14 @@ #endif #endif +#ifndef av_cold +#if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 2) +# define av_cold __attribute__((cold)) +#else +# define av_cold +#endif +#endif + #ifdef HAVE_AV_CONFIG_H # include "internal.h" #endif /* HAVE_AV_CONFIG_H */ |