projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1ffca1
)
(NULL): Use __null for G++.
author
Jason Merrill
<merrill@gnu.org>
Thu, 8 Aug 1996 01:45:02 +0000
(
01:45
+0000)
committer
Jason Merrill
<merrill@gnu.org>
Thu, 8 Aug 1996 01:45:02 +0000
(
01:45
+0000)
From-SVN: r12601
gcc/ginclude/stddef.h
patch
|
blob
|
history
diff --git
a/gcc/ginclude/stddef.h
b/gcc/ginclude/stddef.h
index
49c2556
..
0cea459
100644
(file)
--- a/
gcc/ginclude/stddef.h
+++ b/
gcc/ginclude/stddef.h
@@
-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