OSDN Git Service

* gen-params: Override NULL.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Oct 1997 06:00:21 +0000 (06:00 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Oct 1997 06:00:21 +0000 (06:00 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16232 138bc75d-0d04-0410-961f-82ee72b054a4

libio/ChangeLog
libio/gen-params

index 6da6b9c..ba7c236 100644 (file)
@@ -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
index c6eb7d3..c97edbc 100755 (executable)
@@ -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 */"