diff options
Diffstat (limited to 'include/stdio.h')
-rw-r--r-- | include/stdio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h index aeb48f1535c..5304e552ac7 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdio.h,v 1.39 2011/04/06 11:39:42 miod Exp $ */ +/* $OpenBSD: stdio.h,v 1.40 2011/07/03 18:51:01 jsg Exp $ */ /* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */ /*- @@ -58,6 +58,8 @@ typedef __off_t off_t; #ifndef NULL #ifdef __GNUG__ #define NULL __null +#elif defined(__cplusplus) +#define NULL 0L #else #define NULL ((void *)0) #endif |