From 50078c1c8070dd8d1c329e8117ff30ec72489039 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Thu, 10 Dec 2015 21:49:30 +0100 Subject: libavutil: move FFALIGN macro from common.h to macros.h Include macros.h explicitly in common.h so that external code using FFALIGN does not break. It was already implicitly included through version.h. Include macros.h in lls.h and internal.h for FFALIGN. lls.h was including common.h only for FFALIGN and internal.h was missing the include for FFALIGN. `make checkheaders` did not catch it because it's an internal header. --- libavutil/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavutil/common.h') 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 */ -- cgit v1.2.3