X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetdate.y;h=1d5690423893749dc1092e8bda6f6526d0ba7afe;hb=2e296bb50d37439d208c507bc8409336822a0c28;hp=cdc2b5565dbd13e45fbd89fd4fcd2f29a99ae538;hpb=65eb90523786b69dc0a52b2dfcf1b0f2822f25ab;p=gnulib.git diff --git a/lib/getdate.y b/lib/getdate.y index cdc2b5565..1d5690423 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -14,8 +14,12 @@ /* SUPPRESS 288 on yyerrlab *//* Label unused */ #ifdef HAVE_CONFIG_H +#if defined (emacs) || defined (CONFIG_BROKETS) +#include +#else #include "config.h" #endif +#endif /* Since the code of getdate.y is not included in the Emacs executable itself, there is no need to #define static in this file. Even if @@ -27,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 @@ -37,7 +60,7 @@ #ifdef _AIX /* for Bison */ #pragma alloca #else -char *alloca (); +void *alloca (); #endif #endif #endif @@ -74,7 +97,7 @@ char *alloca (); #undef timezone /* needed for sgi */ #endif -#if defined(HAVE_SYS_TIMEB_H) || (!defined(USG) && defined(HAVE_FTIME)) +#if defined(HAVE_SYS_TIMEB_H) #include #else /*