aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-10-31 21:26:20 +0000
committerRichard Stallman <rms@gnu.org>1992-10-31 21:26:20 +0000
commit98126ed6a4064896d8aa157e3f21d9de35830a32 (patch)
tree7fd86262dced422381e8cd578b66f076fe8df14c /gcc
parentdd08cddad586ecb2e22f6cebfb1cb1082f7cb442 (diff)
downloadgcc-98126ed6a4064896d8aa157e3f21d9de35830a32.zip
gcc-98126ed6a4064896d8aa157e3f21d9de35830a32.tar.gz
gcc-98126ed6a4064896d8aa157e3f21d9de35830a32.tar.bz2
(__builtin_vec_new): #undef NULL before including stdio.h.
(pyramid __enable_execute_stack): Ditto. From-SVN: r2668
Diffstat (limited to 'gcc')
-rw-r--r--gcc/libgcc2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 70bd258..8d34872 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -1226,6 +1226,7 @@ __builtin_new (sz)
#ifdef L_caps_New
/* This gets us __GNU_LIBRARY__. */
+#undef NULL /* Avoid errors if stdio.h and our stddef.h mismatch. */
#include <stdio.h>
#ifdef __GNU_LIBRARY__
@@ -1499,6 +1500,7 @@ __enable_execute_stack ()
#ifdef __pyr__
+#undef NULL /* Avoid errors if stdio.h and our stddef.h mismatch. */
#include <stdio.h>
#include <sys/mman.h>
#include <sys/types.h>