]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gen-params: Override NULL.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 30 Oct 1997 06:00:21 +0000 (06:00 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 30 Oct 1997 06:00:21 +0000 (23:00 -0700)
From-SVN: r16232

libio/ChangeLog
libio/gen-params

index 6da6b9c5b911688f325d5f8b258fabf09d2d1e8d..ba7c23613e21bb2c4f157f9c0be59ff27f704ca2 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 c6eb7d30fd8c7261fc230cfcf245c2b3721b620a..c97edbcb6bc0ed65281c8315769e771fbd910b1e 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 */"