diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-25 01:30:37 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-31 00:08:43 +0100 |
commit | 790f793844390ece526ff654dc1bdddff5f5b4e8 (patch) | |
tree | 3545028e84a0e74a21df31d3cf398ed9284aade3 /libavutil/common.h | |
parent | b616be1649f9a32411a3c5b62afe1d73f5a71ed0 (diff) | |
download | ffmpeg-790f793844390ece526ff654dc1bdddff5f5b4e8.tar.gz |
avutil/common: Don't auto-include mem.h
There are lots of files that don't need it: The number of object
files that actually need it went down from 2011 to 884 here.
Keep it for external users in order to not cause breakages.
Also improve the other headers a bit while just at it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/common.h')
-rw-r--r-- | libavutil/common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index 57c87f1919..3e4c339893 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -42,12 +42,13 @@ #include "attributes.h" #include "error.h" #include "macros.h" -#include "mem.h" #ifdef HAVE_AV_CONFIG_H # include "config.h" # include "intmath.h" # include "internal.h" +#else +# include "mem.h" #endif /* HAVE_AV_CONFIG_H */ //rounded division & shift |