diff options
author | Yonggang Luo <luoyonggang@gmail.com> | 2022-10-21 02:25:46 +0800 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2022-10-28 14:05:07 +0200 |
commit | 9f90a3d6636bbf6eec647909f870137eef2d1bd9 (patch) | |
tree | fc4fd3467687b228bf0902bc7af6abd92f1c0477 /libcpu | |
parent | 13f21dfb9bd09ad4816901ecd63daddc580a8465 (diff) | |
download | elfutils-9f90a3d6636bbf6eec647909f870137eef2d1bd9.tar.gz |
lib{asm,cpu,dw,dwfl,dwelf}: Move platform depended include into system.h
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Diffstat (limited to 'libcpu')
-rw-r--r-- | libcpu/ChangeLog | 6 | ||||
-rw-r--r-- | libcpu/i386_disasm.c | 1 | ||||
-rw-r--r-- | libcpu/memory-access.h | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog index 93c4b72f..06ffe02f 100644 --- a/libcpu/ChangeLog +++ b/libcpu/ChangeLog @@ -1,3 +1,9 @@ +2022-10-21 Yonggang Luo <luoyonggang@gmail.com> + + * i386_disasm.c: Don't include endian.h. + * memory-access.h: Don't include byteswap.h and endian.h. + Do include system.h. + 2022-09-20 Yonggang Luo <luoyonggang@gmail.com> * memory-access.h: Use BYTE_ORDER, LITTLE_ENDIAN and BIG_ENDIAN. diff --git a/libcpu/i386_disasm.c b/libcpu/i386_disasm.c index 40475b81..599d1654 100644 --- a/libcpu/i386_disasm.c +++ b/libcpu/i386_disasm.c @@ -34,7 +34,6 @@ #include <assert.h> #include <config.h> #include <ctype.h> -#include <endian.h> #include <errno.h> #include <gelf.h> #include <stddef.h> diff --git a/libcpu/memory-access.h b/libcpu/memory-access.h index 3b6ca19b..6e92fc5b 100644 --- a/libcpu/memory-access.h +++ b/libcpu/memory-access.h @@ -29,11 +29,10 @@ #ifndef _MEMORY_ACCESS_H #define _MEMORY_ACCESS_H 1 -#include <byteswap.h> -#include <endian.h> #include <limits.h> #include <stdint.h> +#include <system.h> /* When loading this file we require the macro MACHINE_ENCODING to be defined to signal the endianness of the architecture which is |