# HG changeset patch # User zuxy # Date 1206069080 0 # Node ID 2e4747b3d034d9122f82b15ee010927c19fe132d # Parent b4ff998c79e347b36fc08c74b35cf857eca7d7b0 Apply 'cold' attribute to init/uninit functions in libavcodec diff -r b4ff998c79e3 -r 2e4747b3d034 common.h --- 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 */