From 8076c4731f1ba281bbd5e342867492aa477ff309 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 25 Jan 2009 23:21:02 +0000 Subject: Reorganize header #includes: Unconditionally #include standard C headers, group all local #includes together. Originally committed as revision 16796 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/common.h | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'libavutil') diff --git a/libavutil/common.h b/libavutil/common.h index 7c8c66b0c6..e262c593af 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -26,20 +26,14 @@ #ifndef AVUTIL_COMMON_H #define AVUTIL_COMMON_H +#include +#include #include - -#ifdef HAVE_AV_CONFIG_H -/* only include the following when compiling package */ -# include "config.h" - -# include -# include -# include -# include -# include -# include -# include -#endif /* HAVE_AV_CONFIG_H */ +#include +#include +#include +#include +#include #define AV_GCC_VERSION_AT_LEAST(x,y) (defined(__GNUC__) && (__GNUC__ > x || __GNUC__ == x && __GNUC_MINOR__ >= y)) @@ -99,8 +93,6 @@ #endif #endif -#include "mem.h" - //rounded divison & shift #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b)) /* assume b>0 */ @@ -264,7 +256,10 @@ static inline av_const float av_clipf(float a, float amin, float amax) }\ } +#include "mem.h" + #ifdef HAVE_AV_CONFIG_H +# include "config.h" # include "internal.h" #endif /* HAVE_AV_CONFIG_H */ -- cgit v1.2.3