aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1992-07-17 05:56:08 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1992-07-17 05:56:08 -0400
commit3e06027d52bdcf790ffcbcca751c6c4d62ef3306 (patch)
treee65cc58a694e8a289bb779c0b9d5fc9717a7a778 /gcc
parentdf62f951d005dd50be23fd6e28f3ed813b708251 (diff)
downloadgcc-3e06027d52bdcf790ffcbcca751c6c4d62ef3306.zip
gcc-3e06027d52bdcf790ffcbcca751c6c4d62ef3306.tar.gz
gcc-3e06027d52bdcf790ffcbcca751c6c4d62ef3306.tar.bz2
(NULL_PTR): Define as void * if STDC.
From-SVN: r1612
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cccp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index c84e620..29fd289 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