History

avutil/common: Move includes to the beginning of the file

Andreas Rheinhardt committed 2 years ago

Commit b6b33f71 parent 27cd7011 file · +7 −13Browse files

Unified · Split

libavutil/common.h+7−13
@@ -42,6 +42,13 @@ · 41 unmodified lines
4242 #include "attributes.h"
4343 #include "error.h"
4444 #include "macros.h"
45+#include "mem.h"
46+
47+#ifdef HAVE_AV_CONFIG_H
48+# include "config.h"
49+# include "intmath.h"
50+# include "internal.h"
51+#endif /* HAVE_AV_CONFIG_H */
4552
4653 //rounded division & shift
4754 #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
@@ -84,11 +91,6 @@ · 36 unmodified lines
8491
8592 /* misc math functions */
8693
87−#ifdef HAVE_AV_CONFIG_H
88−# include "config.h"
89−# include "intmath.h"
90−#endif
91−
9294 #ifndef av_ceil_log2
9395 # define av_ceil_log2 av_ceil_log2_c
9496 #endif
@@ -568,12 +570,4 @@ static av_always_inline av_const int av_parity_c(uint32_t v) · 473 unmodified lines
568570 }\
569571 }\
570572
571−
572−
573−#include "mem.h"
574−
575−#ifdef HAVE_AV_CONFIG_H
576−# include "internal.h"
577−#endif /* HAVE_AV_CONFIG_H */
578−
579573 #endif /* AVUTIL_COMMON_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t