=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/stddef.h,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/include/stddef.h 2011/04/06 11:39:42 1.11 --- src/include/stddef.h 2011/07/03 18:51:01 1.12 *************** *** 1,4 **** ! /* $OpenBSD: stddef.h,v 1.11 2011/04/06 11:39:42 miod Exp $ */ /* $NetBSD: stddef.h,v 1.4 1994/10/26 00:56:26 cgd Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: stddef.h,v 1.12 2011/07/03 18:51:01 jsg Exp $ */ /* $NetBSD: stddef.h,v 1.4 1994/10/26 00:56:26 cgd Exp $ */ /*- *************** *** 67,72 **** --- 67,74 ---- #ifndef NULL #ifdef __GNUG__ #define NULL __null + #elif defined(__cplusplus) + #define NULL 0L #else #define NULL ((void *)0) #endif