[05/25] use #include <system.h> instead platform depended header <endian.h> in libdw/memory-access.h

Message ID 20221020182603.815-6-luoyonggang@gmail.com
State Committed
Headers
Series Patches for building with mingw/gcc msvc/clang-cl |

Commit Message

Yonggang Luo Oct. 20, 2022, 6:25 p.m. UTC
  Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
---
 libdw/memory-access.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  

Comments

Mark Wielaard Oct. 27, 2022, 1:26 p.m. UTC | #1
On Fri, 2022-10-21 at 02:25 +0800, Yonggang Luo via Elfutils-devel
wrote:
> Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>

Thanks, added ChangeLog entry and tweaked commit message to have < 72
char lines.

Pushed,

Mark
  

Patch

diff --git a/libdw/memory-access.h b/libdw/memory-access.h
index 800b517c..16c8c851 100644
--- a/libdw/memory-access.h
+++ b/libdw/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>
 
 /* Number decoding macros.  See 7.6 Variable Length Data.  */