From d463bda0668397cf570d6ca3c1f72dc1110eef43 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 12 Oct 1993 02:42:06 +0000 Subject: merge with 1.8.1c --- lib/getdate.y | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'lib') diff --git a/lib/getdate.y b/lib/getdate.y index e15a886a0..df1a08a98 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -31,6 +31,25 @@ #undef static #endif +/* The following block of alloca-related preprocessor directives is here + solely to allow compilation by non GNU-C compilers of the C parser + produced from this file by old versions of bison. Newer versions of + bison include a block similar to this one in bison.simple. */ + +#ifdef __GNUC__ +#define alloca __builtin_alloca +#else +#ifdef HAVE_ALLOCA_H +#include +#else +#ifdef _AIX + #pragma alloca +#else +void *alloca (); +#endif +#endif +#endif + #ifdef __GNUC__ #undef alloca #define alloca __builtin_alloca -- cgit v1.2.3-70-g09d2