(NULL): Use __null for G++.
authorJason Merrill <merrill@gnu.org>
Thu, 8 Aug 1996 01:45:02 +0000 (01:45 +0000)
committerJason Merrill <merrill@gnu.org>
Thu, 8 Aug 1996 01:45:02 +0000 (01:45 +0000)
From-SVN: r12601

gcc/ginclude/stddef.h

index 49c2556..0cea459 100644 (file)
@@ -306,7 +306,11 @@ typedef __WINT_TYPE__ wint_t;
 
 #if defined (_STDDEF_H) || defined (__need_NULL)
 #undef NULL            /* in case <stdio.h> has defined it. */
+#ifdef __GNUG__
+#define NULL __null
+#else   /* G++ */
 #define NULL ((void *)0)
+#endif  /* G++ */
 #endif /* NULL not defined and <stddef.h> or need NULL.  */
 #undef __need_NULL