summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc/skeleton.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/yacc/skeleton.c')
-rw-r--r--usr.bin/yacc/skeleton.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c
index 8ff7c8a..434a7c2 100644
--- a/usr.bin/yacc/skeleton.c
+++ b/usr.bin/yacc/skeleton.c
@@ -140,7 +140,11 @@ const char *header[] =
const char *body[] =
{
"/* allocate initial stack or double stack size, up to YYMAXDEPTH */",
+ "#if defined(__cplusplus) || __STDC__",
+ "static int yygrowstack(void)",
+ "#else",
"static int yygrowstack()",
+ "#endif",
"{",
" int newsize, i;",
" short *newss;",
OpenPOWER on IntegriCloud