Mercurial > libavutil.hg
diff common.h @ 486:2e4747b3d034 libavutil
Apply 'cold' attribute to init/uninit functions in libavcodec
| author | zuxy |
|---|---|
| date | Fri, 21 Mar 2008 03:11:20 +0000 |
| parents | f4187c1c15a6 |
| children | b55c2d61403d |
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 */
