Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/include Use #if defined(FOO_CPU) instead of #i...



details:   https://anonhg.NetBSD.org/src/rev/684dc98c8cda
branches:  trunk
changeset: 518811:684dc98c8cda
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Thu Dec 06 01:56:19 2001 +0000

description:
Use #if defined(FOO_CPU) instead of #if FOO_CPU just to be picky.
Spotted by Thomas Klausner.

diffstat:

 sys/arch/i386/include/rnd.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b9cb39e0393f -r 684dc98c8cda sys/arch/i386/include/rnd.h
--- a/sys/arch/i386/include/rnd.h       Thu Dec 06 01:26:36 2001 +0000
+++ b/sys/arch/i386/include/rnd.h       Thu Dec 06 01:56:19 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rnd.h,v 1.3 2000/07/02 21:05:14 sommerfeld Exp $       */
+/*     $NetBSD: rnd.h,v 1.4 2001/12/06 01:56:19 sommerfeld Exp $       */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
 static __inline int
 cpu_hascounter(void)
 {
-#if I586_CPU || I686_CPU
+#if defined(I586_CPU) || defined(I686_CPU)
        /*
         * Note that:
         * 1) Intel documentation is very specific that code *must* test



Home | Main Index | Thread Index | Old Index