Commit 5da07ba3 by Jason Merrill Committed by Jeff Law

* gen-params: Override NULL.

From-SVN: r16232
parent 70f89f0d
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) 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 * libio.h (_IO_LOCK_T): Handle glibc 2 when _IO_MTSAFE_IO is
......
...@@ -711,6 +711,13 @@ fi ...@@ -711,6 +711,13 @@ fi
# Uncomment the following line if you don't have working templates. # Uncomment the following line if you don't have working templates.
# echo "#define ${macro_prefix}NO_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 rm -f dummy.C dummy.o dummy.c dummy.out TMP core a.out
echo "#endif /* !${macro_prefix}config_h */" echo "#endif /* !${macro_prefix}config_h */"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment