summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/include/endian.h4
-rw-r--r--sys/arch/amd64/include/endian.h4
-rw-r--r--sys/arch/arm/include/endian.h6
-rw-r--r--sys/arch/hppa/include/endian.h4
-rw-r--r--sys/arch/hppa64/include/endian.h4
-rw-r--r--sys/arch/i386/include/endian.h4
-rw-r--r--sys/arch/m68k/include/endian.h4
-rw-r--r--sys/arch/m88k/include/endian.h4
-rw-r--r--sys/arch/mips64/include/endian.h8
-rw-r--r--sys/arch/powerpc/include/endian.h5
-rw-r--r--sys/arch/sparc/include/endian.h4
-rw-r--r--sys/arch/sparc64/include/endian.h4
-rw-r--r--sys/arch/vax/include/endian.h4
13 files changed, 30 insertions, 29 deletions
diff --git a/sys/arch/alpha/include/endian.h b/sys/arch/alpha/include/endian.h
index c0cf7b8d91e..49b4f4dcdd3 100644
--- a/sys/arch/alpha/include/endian.h
+++ b/sys/arch/alpha/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.11 2003/06/03 21:09:01 deraadt Exp $ */
+/* $OpenBSD: endian.h,v 1.12 2005/12/13 00:35:22 millert Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -27,7 +27,7 @@
#ifndef _ALPHA_ENDIAN_H_
#define _ALPHA_ENDIAN_H_
-#define BYTE_ORDER LITTLE_ENDIAN
+#define _BYTE_ORDER _LITTLE_ENDIAN
#include <sys/endian.h>
#define __STRICT_ALIGNMENT
diff --git a/sys/arch/amd64/include/endian.h b/sys/arch/amd64/include/endian.h
index 9e2734b8b7c..7cdd9bfb1e6 100644
--- a/sys/arch/amd64/include/endian.h
+++ b/sys/arch/amd64/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.2 2005/12/12 13:19:15 jsg Exp $ */
+/* $OpenBSD: endian.h,v 1.3 2005/12/13 00:35:22 millert Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -56,7 +56,7 @@
#endif /* __GNUC__ */
-#define BYTE_ORDER LITTLE_ENDIAN
+#define _BYTE_ORDER _LITTLE_ENDIAN
#include <sys/endian.h>
#endif /* _I386_ENDIAN_H_ */
diff --git a/sys/arch/arm/include/endian.h b/sys/arch/arm/include/endian.h
index 8c4ab24c701..75f93114cc3 100644
--- a/sys/arch/arm/include/endian.h
+++ b/sys/arch/arm/include/endian.h
@@ -1,9 +1,9 @@
-/* $OpenBSD: endian.h,v 1.2 2005/01/20 15:04:54 drahn Exp $ */
+/* $OpenBSD: endian.h,v 1.3 2005/12/13 00:35:23 millert Exp $ */
#ifdef __ARMEB__
-#define BYTE_ORDER BIG_ENDIAN
+#define _BYTE_ORDER _BIG_ENDIAN
#else
-#define BYTE_ORDER LITTLE_ENDIAN
+#define _BYTE_ORDER _LITTLE_ENDIAN
#endif
#define __STRICT_ALIGNMENT
#include <sys/endian.h>
diff --git a/sys/arch/hppa/include/endian.h b/sys/arch/hppa/include/endian.h
index 110a0d02a75..c374e90f092 100644
--- a/sys/arch/hppa/include/endian.h
+++ b/sys/arch/hppa/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.9 2004/06/28 14:37:54 mickey Exp $ */
+/* $OpenBSD: endian.h,v 1.10 2005/12/13 00:35:23 millert Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -29,7 +29,7 @@
#ifndef _HPPA_ENDIAN_H_
#define _HPPA_ENDIAN_H_
-#define BYTE_ORDER BIG_ENDIAN
+#define _BYTE_ORDER _BIG_ENDIAN
#include <sys/endian.h>
#define __STRICT_ALIGNMENT
diff --git a/sys/arch/hppa64/include/endian.h b/sys/arch/hppa64/include/endian.h
index 3138bcc84d8..06909204a77 100644
--- a/sys/arch/hppa64/include/endian.h
+++ b/sys/arch/hppa64/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.1 2005/04/01 10:40:48 mickey Exp $ */
+/* $OpenBSD: endian.h,v 1.2 2005/12/13 00:35:23 millert Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -20,7 +20,7 @@
#ifndef _HPPA64_ENDIAN_H_
#define _HPPA64_ENDIAN_H_
-#define BYTE_ORDER BIG_ENDIAN
+#define _BYTE_ORDER _BIG_ENDIAN
#include <sys/endian.h>
#define __STRICT_ALIGNMENT
diff --git a/sys/arch/i386/include/endian.h b/sys/arch/i386/include/endian.h
index b1993b41e5a..ad37919f31c 100644
--- a/sys/arch/i386/include/endian.h
+++ b/sys/arch/i386/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.13 2003/06/03 20:31:07 deraadt Exp $ */
+/* $OpenBSD: endian.h,v 1.14 2005/12/13 00:35:23 millert Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -64,7 +64,7 @@
#endif /* __GNUC__ */
-#define BYTE_ORDER LITTLE_ENDIAN
+#define _BYTE_ORDER _LITTLE_ENDIAN
#include <sys/endian.h>
#endif /* _I386_ENDIAN_H_ */
diff --git a/sys/arch/m68k/include/endian.h b/sys/arch/m68k/include/endian.h
index 92457f57523..e341404cf14 100644
--- a/sys/arch/m68k/include/endian.h
+++ b/sys/arch/m68k/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.14 2004/10/16 14:26:01 miod Exp $ */
+/* $OpenBSD: endian.h,v 1.15 2005/12/13 00:35:23 millert Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -52,7 +52,7 @@
#endif /* __GNUC__ */
-#define BYTE_ORDER BIG_ENDIAN
+#define _BYTE_ORDER _BIG_ENDIAN
#include <sys/endian.h>
#endif /* _M68K_ENDIAN_H_ */
diff --git a/sys/arch/m88k/include/endian.h b/sys/arch/m88k/include/endian.h
index 3e430e883e6..dd5d886e685 100644
--- a/sys/arch/m88k/include/endian.h
+++ b/sys/arch/m88k/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.2 2005/09/06 19:28:22 miod Exp $ */
+/* $OpenBSD: endian.h,v 1.3 2005/12/13 00:35:23 millert Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -27,7 +27,7 @@
#ifndef __M88K_ENDIAN_H__
#define __M88K_ENDIAN_H__
-#define BYTE_ORDER BIG_ENDIAN
+#define _BYTE_ORDER _BIG_ENDIAN
#include <sys/endian.h>
#define __STRICT_ALIGNMENT
diff --git a/sys/arch/mips64/include/endian.h b/sys/arch/mips64/include/endian.h
index adefa87f000..45269edc520 100644
--- a/sys/arch/mips64/include/endian.h
+++ b/sys/arch/mips64/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.3 2004/08/10 21:10:56 pefo Exp $ */
+/* $OpenBSD: endian.h,v 1.4 2005/12/13 00:35:23 millert Exp $ */
/*
* Copyright (c) 2001-2002 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -30,13 +30,13 @@
#define _MIPS64_ENDIAN_H_
#if defined(__MIPSEL__)
-#define BYTE_ORDER 1234 /* Little endian */
+#define _BYTE_ORDER _LITTLE_ENDIAN
#endif
#if defined(__MIPSEB__)
-#define BYTE_ORDER 4321 /* Big endian */
+#define _BYTE_ORDER _BIG_ENDIAN
#endif
-#if !defined(BYTE_ORDER) && !defined(lint)
+#if !defined(_BYTE_ORDER) && !defined(lint)
#error "__MIPSEL__ or __MIPSEB__ must be defined to define BYTE_ORDER!!!"
#endif
diff --git a/sys/arch/powerpc/include/endian.h b/sys/arch/powerpc/include/endian.h
index 28a0ca68314..5438566fb76 100644
--- a/sys/arch/powerpc/include/endian.h
+++ b/sys/arch/powerpc/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.12 2003/06/03 21:09:02 deraadt Exp $ */
+/* $OpenBSD: endian.h,v 1.13 2005/12/13 00:35:23 millert Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -27,7 +27,8 @@
#ifndef _POWERPC_ENDIAN_H_
#define _POWERPC_ENDIAN_H_
-#define BYTE_ORDER BIG_ENDIAN
+#undef _BYTE_ORDER /* XXX - gcc may define _BYTE_ORDER too */
+#define _BYTE_ORDER _BIG_ENDIAN
#include <sys/endian.h>
#define __STRICT_ALIGNMENT
diff --git a/sys/arch/sparc/include/endian.h b/sys/arch/sparc/include/endian.h
index b4f7f11ec46..82f6ad18685 100644
--- a/sys/arch/sparc/include/endian.h
+++ b/sys/arch/sparc/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.11 2003/06/03 21:09:02 deraadt Exp $ */
+/* $OpenBSD: endian.h,v 1.12 2005/12/13 00:35:23 millert Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -27,7 +27,7 @@
#ifndef _SPARC_ENDIAN_H_
#define _SPARC_ENDIAN_H_
-#define BYTE_ORDER BIG_ENDIAN
+#define _BYTE_ORDER _BIG_ENDIAN
#include <sys/endian.h>
#define __STRICT_ALIGNMENT
diff --git a/sys/arch/sparc64/include/endian.h b/sys/arch/sparc64/include/endian.h
index cca28ea4fd7..1dfdb42972d 100644
--- a/sys/arch/sparc64/include/endian.h
+++ b/sys/arch/sparc64/include/endian.h
@@ -1,9 +1,9 @@
-/* $OpenBSD: endian.h,v 1.1 2001/08/18 04:16:40 jason Exp $ */
+/* $OpenBSD: endian.h,v 1.2 2005/12/13 00:35:23 millert Exp $ */
#ifndef _SPARC64_ENDIAN_H_
#define _SPARC64_ENDIAN_H_
-#define BYTE_ORDER BIG_ENDIAN
+#define _BYTE_ORDER _BIG_ENDIAN
#include <sys/endian.h>
#define __STRICT_ALIGNMENT
diff --git a/sys/arch/vax/include/endian.h b/sys/arch/vax/include/endian.h
index 3ad6d5f5012..6c0578df68b 100644
--- a/sys/arch/vax/include/endian.h
+++ b/sys/arch/vax/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.12 2004/10/16 14:26:03 miod Exp $ */
+/* $OpenBSD: endian.h,v 1.13 2005/12/13 00:35:23 millert Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -56,7 +56,7 @@
#endif /* __GNUC__ */
-#define BYTE_ORDER LITTLE_ENDIAN
+#define _BYTE_ORDER _LITTLE_ENDIAN
#include <sys/endian.h>
#endif /* _VAX_ENDIAN_H_ */