Mercurial > libavutil.hg
changeset 486:2e4747b3d034 libavutil
Apply 'cold' attribute to init/uninit functions in libavcodec
author | zuxy |
---|---|
date | Fri, 21 Mar 2008 03:11:20 +0000 |
parents | b4ff998c79e3 |
children | 9df3dec6f840 |
files | common.h |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/common.h Wed Mar 19 08:47:31 2008 +0000 +++ b/common.h Fri Mar 21 03:11:20 2008 +0000 @@ -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 */