Mercurial > hg > octave-lyh > gnulib-hg
changeset 122:d35d8718e51a
merge with 1.8.1c
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 12 Oct 1993 02:42:06 +0000 |
parents | 123d7eef6b84 |
children | 9d9d8db37870 |
files | lib/getdate.y |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <alloca.h> +#else +#ifdef _AIX + #pragma alloca +#else +void *alloca (); +#endif +#endif +#endif + #ifdef __GNUC__ #undef alloca #define alloca __builtin_alloca