comparison internal.h @ 366:4d3f4347b718 libavutil

move #include of system headers to top of file
author mru
date Sat, 14 Jul 2007 14:34:40 +0000
parents 7f9e8e77c86b
children 8805bba131a9
comparison
equal deleted inserted replaced
365:7f9e8e77c86b 366:4d3f4347b718
24 */ 24 */
25 25
26 #ifndef INTERNAL_H 26 #ifndef INTERNAL_H
27 #define INTERNAL_H 27 #define INTERNAL_H
28 28
29 #if !defined(DEBUG) && !defined(NDEBUG)
30 # define NDEBUG
31 #endif
32
29 #include <stdint.h> 33 #include <stdint.h>
34 #include <stddef.h>
35 #include <assert.h>
30 36
31 #ifndef attribute_used 37 #ifndef attribute_used
32 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0) 38 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
33 # define attribute_used __attribute__((used)) 39 # define attribute_used __attribute__((used))
34 #else 40 #else
85 #endif 91 #endif
86 92
87 #include "intreadwrite.h" 93 #include "intreadwrite.h"
88 #include "bswap.h" 94 #include "bswap.h"
89 95
90 #include <stddef.h>
91 #ifndef offsetof 96 #ifndef offsetof
92 # define offsetof(T,F) ((unsigned int)((char *)&((T *)0)->F)) 97 # define offsetof(T,F) ((unsigned int)((char *)&((T *)0)->F))
93 #endif 98 #endif
94 99
95 #ifdef USE_FASTMEMCPY 100 #ifdef USE_FASTMEMCPY
114 # define MANGLE(a) #a 119 # define MANGLE(a) #a
115 # endif 120 # endif
116 #endif 121 #endif
117 122
118 /* debug stuff */ 123 /* debug stuff */
119
120 #if !defined(DEBUG) && !defined(NDEBUG)
121 # define NDEBUG
122 #endif
123 #include <assert.h>
124 124
125 /* dprintf macros */ 125 /* dprintf macros */
126 #ifdef DEBUG 126 #ifdef DEBUG
127 # define dprintf(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__) 127 # define dprintf(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__)
128 #else 128 #else