From 3e06027d52bdcf790ffcbcca751c6c4d62ef3306 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 17 Jul 1992 05:56:08 -0400 Subject: [PATCH] (NULL_PTR): Define as void * if STDC. From-SVN: r1612 --- gcc/cccp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/cccp.c b/gcc/cccp.c index c84e62094cf..29fd28939a0 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -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 -- 2.30.2