diff options
author | Zuxy Meng <zuxy.meng@gmail.com> | 2008-03-21 03:11:20 +0000 |
---|---|---|
committer | Zuxy Meng <zuxy.meng@gmail.com> | 2008-03-21 03:11:20 +0000 |
commit | 98a6fff98c3f2e963783e52fb193529bdc14e040 (patch) | |
tree | d950fcf03110d5716c0d348f0ffbbc5f459b71aa /libavutil | |
parent | 77ab59eb7ff28d8183ea51c5a46aab3b430edd9c (diff) | |
download | ffmpeg-98a6fff98c3f2e963783e52fb193529bdc14e040.tar.gz |
Apply 'cold' attribute to init/uninit functions in libavcodec
Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-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 */ |