[SCM] libav/experimental: move #include of system headers to top of file

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:03:41 UTC 2013


The following commit has been merged in the experimental branch:
commit 318049b8eda451d768e34d8e97bb3bbe457faace
Author: Måns Rullgård <mans at mansr.com>
Date:   Sat Jul 14 14:34:40 2007 +0000

    move #include of system headers to top of file
    
    Originally committed as revision 9646 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavutil/internal.h b/libavutil/internal.h
index b44e122..e8dc72e 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -26,7 +26,13 @@
 #ifndef INTERNAL_H
 #define INTERNAL_H
 
+#if !defined(DEBUG) && !defined(NDEBUG)
+#    define NDEBUG
+#endif
+
 #include <stdint.h>
+#include <stddef.h>
+#include <assert.h>
 
 #ifndef attribute_used
 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
@@ -87,7 +93,6 @@
 #include "intreadwrite.h"
 #include "bswap.h"
 
-#include <stddef.h>
 #ifndef offsetof
 #    define offsetof(T,F) ((unsigned int)((char *)&((T *)0)->F))
 #endif
@@ -117,11 +122,6 @@
 
 /* debug stuff */
 
-#if !defined(DEBUG) && !defined(NDEBUG)
-#    define NDEBUG
-#endif
-#include <assert.h>
-
 /* dprintf macros */
 #ifdef DEBUG
 #    define dprintf(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__)

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list