Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Handle non-GNU C++ as well. Pointed out by Klaus Kl...



details:   https://anonhg.NetBSD.org/src/rev/8004a8127c93
branches:  trunk
changeset: 486349:8004a8127c93
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri May 19 18:57:48 2000 +0000

description:
Handle non-GNU C++ as well.  Pointed out by Klaus Klein.

diffstat:

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

diffs (23 lines):

diff -r 418e9d806056 -r 8004a8127c93 sys/sys/null.h
--- a/sys/sys/null.h    Fri May 19 18:54:22 2000 +0000
+++ b/sys/sys/null.h    Fri May 19 18:57:48 2000 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: null.h,v 1.3 2000/05/19 05:04:32 thorpej Exp $ */
+/*     $NetBSD: null.h,v 1.4 2000/05/19 18:57:48 thorpej Exp $ */
 
 #ifndef        NULL
 #if !defined(__GNUG__) || __GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 90)
-#ifdef __AUDIT__
+#if defined(__AUDIT__) && !defined(__cplusplus)
 /*
  * This will cause GCC to emit a warning if you attempt to use NULL
  * with some non-pointer object, return value, etc.
@@ -10,7 +10,7 @@
 #define        NULL    (void *)0
 #else
 #define        NULL    0
-#endif
+#endif /* __AUDIT__ && !__cplusplus */
 #else
 #define        NULL    __null
 #endif



Home | Main Index | Thread Index | Old Index