Source-Changes-HG archive

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

[src/trunk]: src/sys/sys If not GNU C++, if __AUDIT__ is defined, define NULL...



details:   https://anonhg.NetBSD.org/src/rev/a884033d527e
branches:  trunk
changeset: 486327:a884033d527e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri May 19 04:37:20 2000 +0000

description:
If not GNU C++, if __AUDIT__ is defined, define NULL as (void *)0.

diffstat:

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

diffs (17 lines):

diff -r 6639b4cce571 -r a884033d527e sys/sys/null.h
--- a/sys/sys/null.h    Fri May 19 04:34:39 2000 +0000
+++ b/sys/sys/null.h    Fri May 19 04:37:20 2000 +0000
@@ -1,8 +1,12 @@
-/*     $NetBSD: null.h,v 1.1 2000/01/10 16:58:39 kleink Exp $  */
+/*     $NetBSD: null.h,v 1.2 2000/05/19 04:37:20 thorpej Exp $ */
 
 #ifndef        NULL
 #if !defined(__GNUG__) || __GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 90)
+#ifdef __AUDIT__
+#define        NULL    (void *)0
+#else
 #define        NULL    0
+#endif
 #else
 #define        NULL    __null
 #endif



Home | Main Index | Thread Index | Old Index