diff --git a/libavutil/common.h b/libavutil/common.h index 56556e744d..7a43ccf10a 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -36,6 +36,7 @@ #include #include "attributes.h" +#include "macros.h" #include "version.h" #include "libavutil/avconfig.h" @@ -59,7 +60,6 @@ #define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0) #define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0])) -#define FFALIGN(x, a) (((x)+(a)-1)&~((a)-1)) /* misc math functions */ diff --git a/libavutil/internal.h b/libavutil/internal.h index 4264c4e6d5..b9be333b47 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -37,6 +37,7 @@ #include "config.h" #include "attributes.h" #include "dict.h" +#include "macros.h" #include "pixfmt.h" #if ARCH_X86 diff --git a/libavutil/lls.c b/libavutil/lls.c index 12989466e6..60d2b646ba 100644 --- a/libavutil/lls.c +++ b/libavutil/lls.c @@ -29,6 +29,8 @@ #include #include "attributes.h" +#include "config.h" +#include "internal.h" #include "version.h" #include "lls.h" diff --git a/libavutil/lls.h b/libavutil/lls.h index 9b2b3a4091..3977e97235 100644 --- a/libavutil/lls.h +++ b/libavutil/lls.h @@ -23,7 +23,7 @@ #ifndef AVUTIL_LLS_H #define AVUTIL_LLS_H -#include "common.h" +#include "macros.h" #include "mem.h" #include "version.h" diff --git a/libavutil/macros.h b/libavutil/macros.h index bf3eb9b9a4..3e7b00559f 100644 --- a/libavutil/macros.h +++ b/libavutil/macros.h @@ -45,4 +45,6 @@ #define AV_PRAGMA(s) _Pragma(#s) +#define FFALIGN(x, a) (((x)+(a)-1)&~((a)-1)) + #endif /* AVUTIL_MACROS_H */