summaryrefslogtreecommitdiff
path: root/include/stdlib.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/stdlib.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/stdlib.h')
-rw-r--r--include/stdlib.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 8c944d0422d..6c841a216fd 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,4 +1,4 @@
-/* $NetBSD: stdlib.h,v 1.42 1999/02/06 15:04:05 kleink Exp $ */
+/* $NetBSD: stdlib.h,v 1.43 1999/12/22 21:26:19 kleink Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -77,9 +77,7 @@ typedef struct {
#endif
-#ifndef NULL
-#define NULL 0
-#endif
+#include <null.h>
#define EXIT_FAILURE 1
#define EXIT_SUCCESS 0