diff mbox series

[FFmpeg-devel,4/6] avutil/error: Include macros.h for MKTAG

Message ID AM7PR03MB666098C095A6A9B893E1CC6D8FE59@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 5088c7c73304d25f791790cece20a291d25b6a18
Headers show
Series [FFmpeg-devel,1/6] avformat/aviobuf: Make ff_read_line_to_bprint() static
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andreas Rheinhardt July 23, 2021, 5:04 p.m. UTC
Up until now, including error.h alone does not make the AVERROR_* defines
usable, because they just expand to something involving MKTAG, but
without the header providing MKTAG. So include macros.h, the header
providing MKTAG.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
Since 580e168a945b65100ec2c25433f33bfacfe9f7be one could also have
included common.h.

 libavutil/error.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/libavutil/error.h b/libavutil/error.h
index 71df4da353..0d3269aa6d 100644
--- a/libavutil/error.h
+++ b/libavutil/error.h
@@ -27,6 +27,8 @@ 
 #include <errno.h>
 #include <stddef.h>
 
+#include "macros.h"
+
 /**
  * @addtogroup lavu_error
  *