summaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-10-30 06:00:21 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-10-30 06:00:21 +0000
commit990105041a94b01b22cdb62e116ea0436d7d4273 (patch)
treeb585a233c4a7d15d33967885e4801309e3e19b3b /libio
parent101825876aae7a241117cf824902c1703b0a8568 (diff)
downloadgcc-990105041a94b01b22cdb62e116ea0436d7d4273.tar.gz
* gen-params: Override NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16232 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio')
-rw-r--r--libio/ChangeLog4
-rwxr-xr-xlibio/gen-params7
2 files changed, 11 insertions, 0 deletions
diff --git a/libio/ChangeLog b/libio/ChangeLog
index 6da6b9c5b91..ba7c23613e2 100644
--- a/libio/ChangeLog
+++ b/libio/ChangeLog
@@ -1,3 +1,7 @@
+Wed Oct 29 23:01:47 1997 Jason Merrill <jason@yorick.cygnus.com>
+
+ * gen-params: Override NULL.
+
Wed Oct 22 19:19:32 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
* libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
diff --git a/libio/gen-params b/libio/gen-params
index c6eb7d30fd8..c97edbcb6bc 100755
--- a/libio/gen-params
+++ b/libio/gen-params
@@ -711,6 +711,13 @@ fi
# Uncomment the following line if you don't have working templates.
# echo "#define ${macro_prefix}NO_TEMPLATES"
+# Override bogus definitions of NULL in system headers.
+cat <<EOF
+#undef NULL
+#define __need_NULL
+#include <stddef.h>
+EOF
+
rm -f dummy.C dummy.o dummy.c dummy.out TMP core a.out
echo "#endif /* !${macro_prefix}config_h */"