aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/libgcc2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index d1383bb..0fa8c8c 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -1319,6 +1319,7 @@ BLOCK_PROFILER_CODE
systems that don't provde tcov support. At present,
it requires atexit and stdio. */
+#undef NULL /* Avoid errors if stdio.h and our stddef.h mismatch. */
#include <stdio.h>
#ifdef HAVE_ATEXIT