summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
authorkleink <kleink@NetBSD.org>1999-12-22 21:26:15 +0000
committerkleink <kleink@NetBSD.org>1999-12-22 21:26:15 +0000
commitc07f17e8d97d719e01f9d9075adf032b93149487 (patch)
tree2058ad046919ec928aa1445f943f294bfdf4d60c /include/string.h
parent7ec3575193b6f52a02091d6a931bd222cd9f10ab (diff)
For the benefit of G++'s null pointer constant implementation, #define NULL
as __null with egcs 1.0 (GCC 2.90) and above. As several headers are affected by this change, move the definition into a new header file, <null.h>, to ease maintenance.
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/string.h b/include/string.h
index 971059a5bea..e05a19f19d7 100644
--- a/include/string.h
+++ b/include/string.h
@@ -1,4 +1,4 @@
-/* $NetBSD: string.h,v 1.20 1999/09/09 09:30:40 kleink Exp $ */
+/* $NetBSD: string.h,v 1.21 1999/12/22 21:26:19 kleink Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -44,9 +44,7 @@ typedef _BSD_SIZE_T_ size_t;
#undef _BSD_SIZE_T_
#endif
-#ifndef NULL
-#define NULL 0
-#endif
+#include <null.h>
#include <sys/cdefs.h>
#include <sys/featuretest.h>