Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Use "#if" to compare two tokens, not "#ifdef".



details:   https://anonhg.NetBSD.org/src/rev/eb7ebb9fdb54
branches:  trunk
changeset: 554337:eb7ebb9fdb54
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Oct 27 02:30:26 2003 +0000

description:
Use "#if" to compare two tokens, not "#ifdef".

diffstat:

 sys/sys/ieee754.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 34c3e9891fac -r eb7ebb9fdb54 sys/sys/ieee754.h
--- a/sys/sys/ieee754.h Mon Oct 27 02:17:18 2003 +0000
+++ b/sys/sys/ieee754.h Mon Oct 27 02:30:26 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee754.h,v 1.3 2003/10/27 01:11:47 kleink Exp $       */
+/*     $NetBSD: ieee754.h,v 1.4 2003/10/27 02:30:26 simonb Exp $       */
 
 /*
  * Copyright (c) 1992, 1993
@@ -89,7 +89,7 @@
 #define        DBL_FRACBITS    52
 
 struct ieee_single {
-#ifdef _BYTE_ORDER == _BIG_ENDIAN
+#if _BYTE_ORDER == _BIG_ENDIAN
        u_int   sng_sign:1;
        u_int   sng_exp:8;
        u_int   sng_frac:23;
@@ -101,7 +101,7 @@
 };
 
 struct ieee_double {
-#ifdef _BYTE_ORDER == _BIG_ENDIAN
+#if _BYTE_ORDER == _BIG_ENDIAN
        u_int   dbl_sign:1;
        u_int   dbl_exp:11;
        u_int   dbl_frach:20;



Home | Main Index | Thread Index | Old Index