From a54a1bdc6b4b7a823be123a9e48b8e7556572905 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 13 Dec 2002 08:27:32 +0000 Subject: [PATCH] (alloca) [C_ALLOCA]: Add decl here, the only place where it's needed. --- src/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index a7a0ae5..87ecbab 100644 --- a/src/main.c +++ b/src/main.c @@ -1,4 +1,5 @@ -/* Top level entry point of bison, +/* Top level entry point of Bison. + Copyright (C) 1984, 1986, 1989, 1992, 1995, 2000, 2001, 2002 Free Software Foundation, Inc. @@ -173,7 +174,10 @@ main (int argc, char *argv[]) /* If using alloca.c, flush the alloca'ed memory for the benefit of people running Bison as a library in IDEs. */ #if C_ALLOCA - alloca (0); + { + extern void *alloca (size_t); + alloca (0); + } #endif timevar_pop (TV_FREE); -- 2.7.4