diff options
author | wood <wood@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-08-14 22:52:00 +0000 |
---|---|---|
committer | wood <wood@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-08-14 22:52:00 +0000 |
commit | dfcb14dbf8849f02dd73a4b8dd0199f116f6178c (patch) | |
tree | d7a88732563a5ba24b97703058853c094eaf8cdc /gcc/cexp.y | |
parent | 3792d6a472f38a90448090e8a14fbe57575fcf2d (diff) | |
download | gcc-dfcb14dbf8849f02dd73a4b8dd0199f116f6178c.tar.gz |
(NULL_PTR): Use the same definition as
rtl.h and tree.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1847 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cexp.y')
-rw-r--r-- | gcc/cexp.y | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/cexp.y b/gcc/cexp.y index 6dcbecd3c2a..8f500e93815 100644 --- a/gcc/cexp.y +++ b/gcc/cexp.y @@ -45,12 +45,22 @@ struct arglist { int argno; }; +/* 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 int yylex (); |