diff options
author | Måns Rullgård <mans@mansr.com> | 2006-12-08 00:35:08 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2006-12-08 00:35:08 +0000 |
commit | 849f10351d673ced1db6f13e399876f22121f60c (patch) | |
tree | 779ae65e38d3070b7bf48ea6e6d89032a9e00521 /libavutil/common.h | |
parent | fb17fac8c7dd92c77cf93019510e15fdae418d16 (diff) | |
download | ffmpeg-849f10351d673ced1db6f13e399876f22121f60c.tar.gz |
rename always_inline to av_always_inline and move to common.h
Originally committed as revision 7256 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/common.h')
-rw-r--r-- | libavutil/common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index d8baf12379..ca6147a802 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -43,6 +43,17 @@ # include "berrno.h" # endif # include <math.h> +#endif /* HAVE_AV_CONFIG_H */ + +#ifndef av_always_inline +#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) +# define av_always_inline __attribute__((always_inline)) inline +#else +# define av_always_inline inline +#endif +#endif + +#ifdef HAVE_AV_CONFIG_H # include "internal.h" #endif /* HAVE_AV_CONFIG_H */ |