Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/dist/am-utils/include Pull up revision 1.2 (requested b...
details: https://anonhg.NetBSD.org/src/rev/ba5b27064e2e
branches: netbsd-1-6
changeset: 527623:ba5b27064e2e
user: tv <tv%NetBSD.org@localhost>
date: Thu May 30 18:49:50 2002 +0000
description:
Pull up revision 1.2 (requested by itojun in ticket #76):
detect endianness correctly by using BYTE_ORDER.
diffstat:
dist/am-utils/include/am_defs.h | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (26 lines):
diff -r 65020ccb268d -r ba5b27064e2e dist/am-utils/include/am_defs.h
--- a/dist/am-utils/include/am_defs.h Thu May 30 18:44:25 2002 +0000
+++ b/dist/am-utils/include/am_defs.h Thu May 30 18:49:50 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: am_defs.h,v 1.1.1.4 2001/05/13 17:50:31 veego Exp $ */
+/* $NetBSD: am_defs.h,v 1.1.1.4.2.1 2002/05/30 18:49:50 tv Exp $ */
/*
* Copyright (c) 1997-2001 Erez Zadok
@@ -126,11 +126,13 @@
/*
* Big-endian or little-endian?
*/
-#ifdef WORDS_BIGENDIAN
+#if BYTE_ORDER == BIG_ENDIAN
# define ARCH_ENDIAN "big"
-#else /* not WORDS_BIGENDIAN */
+# define WORDS_BIGENDIAN
+#endif
+#if BYTE_ORDER == LITTLE_ENDIAN
# define ARCH_ENDIAN "little"
-#endif /* not WORDS_BIGENDIAN */
+#endif
/*
* Actions to take if HAVE_SYS_TYPES_H is defined.
Home |
Main Index |
Thread Index |
Old Index