]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Reorganize header #includes: Unconditionally #include standard C headers,
authordiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 25 Jan 2009 23:21:02 +0000 (23:21 +0000)
committerdiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 25 Jan 2009 23:21:02 +0000 (23:21 +0000)
group all local #includes together.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16796 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavutil/common.h

index 7c8c66b0c6be9cd1dc0c290f47f0422bb86ddf87..e262c593afacd049a6d5419737821610d9372646 100644 (file)
 #ifndef AVUTIL_COMMON_H
 #define AVUTIL_COMMON_H
 
+#include <ctype.h>
+#include <errno.h>
 #include <inttypes.h>
-
-#ifdef HAVE_AV_CONFIG_H
-/* only include the following when compiling package */
-#    include "config.h"
-
-#    include <stdlib.h>
-#    include <stdio.h>
-#    include <string.h>
-#    include <ctype.h>
-#    include <limits.h>
-#    include <errno.h>
-#    include <math.h>
-#endif /* HAVE_AV_CONFIG_H */
+#include <limits.h>
+#include <math.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 #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 */