Really install NULL_PTR change
authorTom Wood <wood@gnu.org>
Sat, 15 Aug 1992 00:20:19 +0000 (00:20 +0000)
committerTom Wood <wood@gnu.org>
Sat, 15 Aug 1992 00:20:19 +0000 (00:20 +0000)
From-SVN: r1854

gcc/gcc.c

index dbf72f42d4fe112f529ca2d84e82ad5c0dd2d762..b1613505bb463be008735a6a5ab6029097f0ec2a 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -47,12 +47,22 @@ compilation is specified by a string called a "spec".  */
 #define X_OK 1
 #endif
 
+/* Define a generic NULL if one hasn't already been defined.  */
+
 #ifndef NULL
 #define NULL 0
 #endif
 
+#ifndef GENERIC_PTR
+#if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
+#define GENERIC_PTR void *
+#else
+#define GENERIC_PTR char *
+#endif
+#endif
+
 #ifndef NULL_PTR
-#define NULL_PTR (char *) NULL
+#define NULL_PTR ((GENERIC_PTR)0)
 #endif
 
 #ifdef USG