diff options
author | Tom Wood <wood@gnu.org> | 1992-08-14 22:52:00 +0000 |
---|---|---|
committer | Tom Wood <wood@gnu.org> | 1992-08-14 22:52:00 +0000 |
commit | d6927cc9589c923b7d5be294bcc8ea9280badc5a (patch) | |
tree | d7a88732563a5ba24b97703058853c094eaf8cdc /gcc/cexp.y | |
parent | 5856c581baeaeef59ecefba059f53fe83abdc6bd (diff) | |
download | gcc-d6927cc9589c923b7d5be294bcc8ea9280badc5a.zip gcc-d6927cc9589c923b7d5be294bcc8ea9280badc5a.tar.gz gcc-d6927cc9589c923b7d5be294bcc8ea9280badc5a.tar.bz2 |
(NULL_PTR): Use the same definition as
rtl.h and tree.h.
From-SVN: r1847
Diffstat (limited to 'gcc/cexp.y')
-rw-r--r-- | gcc/cexp.y | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 (); |