Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/arch/sh3/include Pullup revision 1.3 (approved by t...



details:   https://anonhg.NetBSD.org/src/rev/624f3aadbd13
branches:  netbsd-1-5
changeset: 488975:624f3aadbd13
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Aug 08 18:35:54 2000 +0000

description:
Pullup revision 1.3 (approved by thorpej):

 check _BYTE_ORDER instead of BYTE_ORDER to fix namespace pollution
 (and it's necessary to compile src/usr.bin/xlint/llib)

diffstat:

 sys/arch/sh3/include/intcreg.h |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (68 lines):

diff -r 8334e0520461 -r 624f3aadbd13 sys/arch/sh3/include/intcreg.h
--- a/sys/arch/sh3/include/intcreg.h    Tue Aug 08 18:34:22 2000 +0000
+++ b/sys/arch/sh3/include/intcreg.h    Tue Aug 08 18:35:54 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intcreg.h,v 1.2 1999/09/16 12:48:35 msaitoh Exp $ */
+/* $NetBSD: intcreg.h,v 1.2.12.1 2000/08/08 18:35:54 msaitoh Exp $ */
 
 /*-
  * Copyright (C) 1999 SAITOH Masanobu.  All rights reserved.
@@ -29,8 +29,8 @@
 #ifndef _SH3_INTCREG_H__
 #define _SH3_INTCREG_H__
 
-#ifndef BYTE_ORDER
-#error Define BYTE_ORDER!
+#ifndef _BYTE_ORDER
+#error Define _BYTE_ORDER!
 #endif
 
 /*
@@ -41,13 +41,13 @@
        union {
                unsigned short   WORD;  /* Word Access */
                struct {                /* Bit  Access */
-#if BYTE_ORDER == BIG_ENDIAN
+#if _BYTE_ORDER == BIG_ENDIAN
                        /* Bit 15..0 */
                        unsigned char NMIL:1;
                        unsigned char     :6;
                        unsigned char NMIE:1;
                        unsigned char     :8;
-#else  /* BYTE_ORDER == LITTLE_ENDIAN */
+#else  /* _BYTE_ORDER == LITTLE_ENDIAN */
                        /* Bit 0..15 */
                        unsigned char     :8;
                        unsigned char NMIE:1;
@@ -61,13 +61,13 @@
        union {
                unsigned short   WORD;  /* Word Access */
                struct {                /* Bit  Access */
-#if BYTE_ORDER == BIG_ENDIAN
+#if _BYTE_ORDER == BIG_ENDIAN
                        /* Bit 15..0 */
                        unsigned short TMU0 :4;
                        unsigned short TMU1 :4;
                        unsigned short TMU2 :4;
                        unsigned short RTC  :4;
-#else  /* BYTE_ORDER == LITTLE_ENDIAN */
+#else  /* _BYTE_ORDER == LITTLE_ENDIAN */
                        /* Bit 0..15 */
                        unsigned short RTC  :4;
                        unsigned short TMU2 :4;
@@ -81,13 +81,13 @@
        union {
                unsigned short   WORD;  /* Word Access */
                struct {                /* Bit  Access */
-#if BYTE_ORDER == BIG_ENDIAN
+#if _BYTE_ORDER == BIG_ENDIAN
                        /* Bit 15..0 */
                        unsigned short WDT  :4;
                        unsigned short REF  :4;
                        unsigned short SCI  :4;
                        unsigned short      :4;
-#else  /* BYTE_ORDER == LITTLE_ENDIAN */
+#else  /* _BYTE_ORDER == LITTLE_ENDIAN */
                        /* Bit 0..15 */
                        unsigned short      :4;
                        unsigned short SCI  :4;



Home | Main Index | Thread Index | Old Index