This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Use the same bits/endian.h for i386/x86_64
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 30 May 2012 14:39:21 -0700
- Subject: PATCH: Use the same bits/endian.h for i386/x86_64
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
This patch adds x86/bits/endian.h to replace i386/bits/endian.h and
x86_64/bits/endian.h. OK to install?
Thanks.
H.J.
--
[BZ #14117]
* sysdeps/i386/bits/endian.h: Removed.
* sysdeps/x86_64/bits/endian.h: Renamed to ...
* sysdeps/x86/bits/endian.h: This.
diff --git a/sysdeps/i386/bits/endian.h b/sysdeps/i386/bits/endian.h
deleted file mode 100644
index 54bd9d1..0000000
--- a/sysdeps/i386/bits/endian.h
+++ /dev/null
@@ -1,7 +0,0 @@
-/* i386 is little-endian. */
-
-#ifndef _ENDIAN_H
-# error "Never use <bits/endian.h> directly; include <endian.h> instead."
-#endif
-
-#define __BYTE_ORDER __LITTLE_ENDIAN
diff --git a/sysdeps/x86/bits/endian.h b/sysdeps/x86/bits/endian.h
new file mode 100644
index 0000000..2f59ead
--- /dev/null
+++ b/sysdeps/x86/bits/endian.h
@@ -0,0 +1,7 @@
+/* i386/x86_64 are little-endian. */
+
+#ifndef _ENDIAN_H
+# error "Never use <bits/endian.h> directly; include <endian.h> instead."
+#endif
+
+#define __BYTE_ORDER __LITTLE_ENDIAN
diff --git a/sysdeps/x86_64/bits/endian.h b/sysdeps/x86_64/bits/endian.h
deleted file mode 100644
index 2f59ead..0000000
--- a/sysdeps/x86_64/bits/endian.h
+++ /dev/null
@@ -1,7 +0,0 @@
-/* x86_64 is little-endian. */
-
-#ifndef _ENDIAN_H
-# error "Never use <bits/endian.h> directly; include <endian.h> instead."
-#endif
-
-#define __BYTE_ORDER __LITTLE_ENDIAN