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.2 (approved by t...



details:   https://anonhg.NetBSD.org/src/rev/d9868124b397
branches:  netbsd-1-5
changeset: 488973:d9868124b397
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Aug 08 18:30:46 2000 +0000

description:
Pullup revision 1.2 (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/ieee.h      |  10 +++++-----
 sys/arch/sh3/include/sh_opcode.h |   6 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (57 lines):

diff -r 46b8ce571757 -r d9868124b397 sys/arch/sh3/include/ieee.h
--- a/sys/arch/sh3/include/ieee.h       Tue Aug 08 18:29:15 2000 +0000
+++ b/sys/arch/sh3/include/ieee.h       Tue Aug 08 18:30:46 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee.h,v 1.1 1999/09/13 10:31:18 itojun Exp $ */
+/*     $NetBSD: ieee.h,v 1.1.12.1 2000/08/08 18:30:46 msaitoh Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -87,11 +87,11 @@
 #define        EXT_EXPBITS     15
 #define        EXT_FRACBITS    112
 
-#ifndef BYTE_ORDER
-#error Define BYTE_ORDER!
+#ifndef _BYTE_ORDER
+#error Define _BYTE_ORDER!
 #endif
 
-#if BYTE_ORDER == BIG_ENDIAN
+#if _BYTE_ORDER == BIG_ENDIAN
 struct ieee_single {
        u_int   sng_sign:1;
        u_int   sng_exp:8;
@@ -114,7 +114,7 @@
        u_int   ext_fracl;
 };
 #endif
-#if BYTE_ORDER == LITTLE_ENDIAN
+#if _BYTE_ORDER == LITTLE_ENDIAN
 struct ieee_single {
        u_int   sng_frac:23;
        u_int   sng_exp:8;
diff -r 46b8ce571757 -r d9868124b397 sys/arch/sh3/include/sh_opcode.h
--- a/sys/arch/sh3/include/sh_opcode.h  Tue Aug 08 18:29:15 2000 +0000
+++ b/sys/arch/sh3/include/sh_opcode.h  Tue Aug 08 18:30:46 2000 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: sh_opcode.h,v 1.1 1999/09/13 10:31:22 itojun Exp $ */
+/* $NetBSD: sh_opcode.h,v 1.1.12.1 2000/08/08 18:33:00 msaitoh Exp $ */
 
 typedef union {
        unsigned word;
 
-#if BYTE_ORDER == BIG_ENDIAN
+#if _BYTE_ORDER == BIG_ENDIAN
        struct {
                unsigned op: 16;
        } oType;
@@ -73,7 +73,7 @@
                unsigned i: 8;
        } niType;
 #endif
-#if BYTE_ORDER == LITTLE_ENDIAN
+#if _BYTE_ORDER == LITTLE_ENDIAN
 struct {
                unsigned op: 16;
        } oType;



Home | Main Index | Thread Index | Old Index