From b27e467a0f3fbb2ba1e30b32a18174f170b76ef2 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 3 Jul 2011 18:51:02 +0000 Subject: As pointed out by Richard Guenther our definition of NULL was incorrect for c++ compilers that aren't gcc (or pretend to be gcc like clang). ok miod@ --- include/wchar.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/wchar.h') diff --git a/include/wchar.h b/include/wchar.h index 23030ee7a3f..b590b7a8fed 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wchar.h,v 1.17 2011/06/01 16:39:07 millert Exp $ */ +/* $OpenBSD: wchar.h,v 1.18 2011/07/03 18:51:01 jsg Exp $ */ /* $NetBSD: wchar.h,v 1.16 2003/03/07 07:11:35 tshiozak Exp $ */ /*- @@ -65,6 +65,8 @@ #ifndef NULL #ifdef __GNUG__ #define NULL __null +#elif defined(__cplusplus) +#define NULL 0L #else #define NULL ((void *)0) #endif -- cgit v1.2.3