diff mbox series

[FFmpeg-devel,15/19] avutil/integer: Don't include common.h

Message ID AM7PR03MB6660680B8E1725E0DA0230448F349@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 2c2d76b50d7ca2ddf3faa396a94a762158128e2d
Headers show
Series [FFmpeg-devel] avutil/x86/emms: Don't unnecessarily include lavu/cpu.h | expand

Checks

Context Check Description
yinshiyou/configure_loongarch64 warning Failed to run configure
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 15, 2022, 5:43 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavutil/integer.c | 4 +++-
 libavutil/integer.h | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

Comments

Martin Storsjö Feb. 23, 2022, 2:51 p.m. UTC | #1
On Tue, 15 Feb 2022, Andreas Rheinhardt wrote:

> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
> libavutil/integer.c | 4 +++-
> libavutil/integer.h | 2 +-
> 2 files changed, 4 insertions(+), 2 deletions(-)

LGTM

// Martin
diff mbox series

Patch

diff --git a/libavutil/integer.c b/libavutil/integer.c
index 78e252fbde..b709c6d487 100644
--- a/libavutil/integer.c
+++ b/libavutil/integer.c
@@ -25,9 +25,11 @@ 
  * @author Michael Niedermayer <michaelni@gmx.at>
  */
 
-#include "common.h"
+#include <string.h>
+
 #include "integer.h"
 #include "avassert.h"
+#include "intmath.h"
 
 static const AVInteger zero_i;
 
diff --git a/libavutil/integer.h b/libavutil/integer.h
index 45f733c04c..2d9b5bb10f 100644
--- a/libavutil/integer.h
+++ b/libavutil/integer.h
@@ -29,7 +29,7 @@ 
 #define AVUTIL_INTEGER_H
 
 #include <stdint.h>
-#include "common.h"
+#include "attributes.h"
 
 #define AV_INTEGER_SIZE 8