rationale: https://sourceware.org/bugzilla/show_bug.cgi?id=21001
If we don't remove this macro, when try #include <system.h> in
libdw/memory-access.h wont' take effect because
"#define LIB_SYSTEM_H 1"
The compile error:
./../libdw/memory-access.h:390:12: error: implicit declaration of
function ‘bswap_32’ [-Werror=implicit-function-declaration]
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
+2022-10-21 Yonggang Luo <luoyonggang@gmail.com>
+
+ * libdwfl_crc32.c: Remove LIB_SYSTEM_H define.
+
2022-09-20 Yonggang Luo <luoyonggang@gmail.com>
* dwfl_segment_report_module.c: Use BYTE_ORDER, LITTLE_ENDIAN and
#endif
#define crc32 attribute_hidden __libdwfl_crc32
-#define LIB_SYSTEM_H 1
#include <libdwflP.h>
#include "../lib/crc32.c"
+2022-10-21 Yonggang Luo <luoyonggang@gmail.com>
+
+ * libelf_crc32.c: Remove LIB_SYSTEM_H define.
+
2022-09-20 Yonggang Luo <luoyonggang@gmail.com>
* elf32_checksum.c: Use BYTE_ORDER, LITTLE_ENDIAN and BIG_ENDIAN.
#endif
#define crc32 attribute_hidden __libelf_crc32
-#define LIB_SYSTEM_H 1
#include <libelf.h>
#include "../lib/crc32.c"