Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/libctf Avoid re-definitions



details:   https://anonhg.NetBSD.org/src/rev/0116fa423926
branches:  trunk
changeset: 955066:0116fa423926
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 17 16:05:14 2020 +0000

description:
Avoid re-definitions

diffstat:

 external/gpl3/gdb/dist/libctf/ctf-endian.h |  24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diffs (34 lines):

diff -r 520b1e2b0301 -r 0116fa423926 external/gpl3/gdb/dist/libctf/ctf-endian.h
--- a/external/gpl3/gdb/dist/libctf/ctf-endian.h        Thu Sep 17 15:43:24 2020 +0000
+++ b/external/gpl3/gdb/dist/libctf/ctf-endian.h        Thu Sep 17 16:05:14 2020 +0000
@@ -24,14 +24,22 @@
 #include <stdint.h>
 #include "swap.h"
 
-#if !defined (HAVE_ENDIAN_H) || !defined (htole64)
-#ifndef WORDS_BIGENDIAN
-# define htole64(x) (x)
-# define le64toh(x) (x)
-#else
-# define htole64(x) bswap_64 ((x))
-# define le64toh(x) bswap_64 ((x))
-#endif /* WORDS_BIGENDIAN */
+#if !defined (HAVE_ENDIAN_H)
+# ifndef WORDS_BIGENDIAN
+#  ifndef htole64
+#   define htole64(x) (x)
+#  endif
+#  ifndef le64toh
+#   define le64toh(x) (x)
+#  endif
+# else
+#  ifndef htole64
+#   define htole64(x) bswap_64 ((x))
+#  endif
+#  ifndef le64toh
+#   define le64toh(x) bswap_64 ((x))
+#  endif
+# endif /* WORDS_BIGENDIAN */
 #endif /* !defined(HAVE_ENDIAN_H) */
 
 #endif /* !defined(_CTF_ENDIAN_H) */



Home | Main Index | Thread Index | Old Index