From: Paul Eggert Date: Fri, 13 Dec 2002 08:27:32 +0000 (+0000) Subject: (alloca) [C_ALLOCA]: Add decl here, the only place where it's needed. X-Git-Tag: BISON-1_875~93 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/a54a1bdc6b4b7a823be123a9e48b8e7556572905 (alloca) [C_ALLOCA]: Add decl here, the only place where it's needed. --- diff --git a/src/main.c b/src/main.c index a7a0ae59..87ecbaba 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);