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/5dbee5c70b67
branches: trunk
changeset: 976290:5dbee5c70b67
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 06b8fc67bd9f -r 5dbee5c70b67 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