(__builtin_vec_new): #undef NULL before including stdio.h.
authorRichard Stallman <rms@gnu.org>
Sat, 31 Oct 1992 21:26:20 +0000 (21:26 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 31 Oct 1992 21:26:20 +0000 (21:26 +0000)
(pyramid __enable_execute_stack): Ditto.

From-SVN: r2668

gcc/libgcc2.c

index 70bd258917e231d5ef27fcac1d6bf5711bcc7730..8d348729e8b56fa900924e4d059fcb3ae50014c6 100644 (file)
@@ -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>