Module Name:    src
Committed By:   christos
Date:           Thu Sep 17 16:05:14 UTC 2020

Modified Files:
        src/external/gpl3/gdb/dist/libctf: ctf-endian.h

Log Message:
Avoid re-definitions


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/libctf/ctf-endian.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/libctf/ctf-endian.h
diff -u src/external/gpl3/gdb/dist/libctf/ctf-endian.h:1.1.1.1 src/external/gpl3/gdb/dist/libctf/ctf-endian.h:1.2
--- src/external/gpl3/gdb/dist/libctf/ctf-endian.h:1.1.1.1	Mon Sep 14 21:44:12 2020
+++ src/external/gpl3/gdb/dist/libctf/ctf-endian.h	Thu Sep 17 12:05:14 2020
@@ -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) */

Reply via email to