summaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-06-30 06:11:43 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-06-30 06:11:43 +0000
commit51db713ffd51965e1e25638542f31197fe02f2d8 (patch)
tree6404a97ab15b6ba25ce643f6503f832a423c649b /gcc/system.h
parentb8705408e8fb861e6c27cc361b87385adc728a5e (diff)
downloadgcc-51db713ffd51965e1e25638542f31197fe02f2d8.tar.gz
Remove autoconf things and OS header stuff (namely NULL) from gansidecl.h:
* gansidecl.h (ATTRIBUTE_UNUSED): Use __unused__ not `unused'. Don't define NULL here. Also, remove all vestiges of autoconf based checks for bcmp/bcopy/bzero/index/rindex. * system.h: Immediately after including stdio.h, check for and if necessary provide a default definition of NULL. From-SVN: r20814
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 79e1e279ae2..acb195f2e39 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -8,6 +8,12 @@
#define __GCC_SYSTEM_H__
#include <stdio.h>
+
+/* Define a generic NULL if one hasn't already been defined. */
+#ifndef NULL
+#define NULL 0
+#endif
+
#include <ctype.h>
/* Jim Meyering writes: