(NULL_PTR): Define as void * if STDC.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 17 Jul 1992 09:56:08 +0000 (05:56 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 17 Jul 1992 09:56:08 +0000 (05:56 -0400)
From-SVN: r1612

gcc/cccp.c

index c84e62094cf9ed7b086d22830dcef2bbeaba634f..29fd28939a0494debef576bb1fc542c43563152d 100644 (file)
@@ -126,8 +126,12 @@ typedef struct { unsigned :16, :16, :16; } vms_ino_t;
 #endif
 
 #ifndef NULL_PTR
+#ifdef __STDC__
+#define NULL_PTR (void *) NULL
+#else
 #define NULL_PTR (char *) NULL
 #endif
+#endif
 
 #ifndef INCLUDE_LEN_FUDGE
 #define INCLUDE_LEN_FUDGE 0