Source-Changes-HG archive

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

[src/trunk]: src/sys/vm Check to see if TRUE and FALSE are already defined be...



details:   https://anonhg.NetBSD.org/src/rev/507a2c46c204
branches:  trunk
changeset: 471769:507a2c46c204
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Apr 11 00:59:07 1999 +0000

description:
Check to see if TRUE and FALSE are already defined before blindly
trying to define them ourselves.

Fixes PRs kern/2813 and misc/7356.

diffstat:

 sys/vm/vm_param.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r fa16eb62b036 -r 507a2c46c204 sys/vm/vm_param.h
--- a/sys/vm/vm_param.h Sat Apr 10 21:36:59 1999 +0000
+++ b/sys/vm/vm_param.h Sun Apr 11 00:59:07 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_param.h,v 1.20 1999/04/10 13:52:11 drochner Exp $   */
+/*     $NetBSD: vm_param.h,v 1.21 1999/04/11 00:59:07 simonb Exp $     */
 
 /* 
  * Copyright (c) 1991, 1993
@@ -77,8 +77,12 @@
  * This belongs in types.h, but breaks too many existing programs.
  */
 typedef int    boolean_t;
+#ifndef TRUE
 #define        TRUE    1
+#endif
+#ifndef FALSE
 #define        FALSE   0
+#endif
 
 /*
  *     The machine independent pages are refered to as PAGES.  A page



Home | Main Index | Thread Index | Old Index