diff options
author | obrien <obrien@FreeBSD.org> | 1999-07-30 17:23:44 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-07-30 17:23:44 +0000 |
commit | f844e40453c14511b65cb2bf10cc4213d262d2ab (patch) | |
tree | 3c63a55afa95084e5f2f6afce7e61b4896b50140 /contrib | |
parent | e72fd6b32f22180779062f24249341b89834296f (diff) | |
download | FreeBSD-src-f844e40453c14511b65cb2bf10cc4213d262d2ab.zip FreeBSD-src-f844e40453c14511b65cb2bf10cc4213d262d2ab.tar.gz |
If "YYPARSE_PARAM" is defined, we need a different prototype for yyparse().
PR: gnu/12868
Submitted by: Vadim Chekan <vadim@gc.lviv.ua>
Obtained from: bison-1.26a (identical change was made there)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/bison/bison.simple | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/bison/bison.simple b/contrib/bison/bison.simple index aea6b78..4de8f28 100644 --- a/contrib/bison/bison.simple +++ b/contrib/bison/bison.simple @@ -150,8 +150,12 @@ int yydebug; /* nonzero means print parse trace */ /* Prevent warning if -Wstrict-prototypes. */ #ifdef __GNUC__ +#ifdef YYPARSE_PARAM +int yyparse (void *); +#else int yyparse (void); #endif +#endif #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ #define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) |