X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Falloca_.h;h=8ed34fdc6d2c1f39317081efae063329055a49a2;hb=df308e3fc0bbea8e50977ab1e86e4ddf124606d8;hp=86aa0a558821af0987127b80854f79ef20d7e212;hpb=4589d52c7c039b9d9c9d7bec075f00c9d57ee6e1;p=gnulib.git diff --git a/lib/alloca_.h b/lib/alloca_.h index 86aa0a558..8ed34fdc6 100644 --- a/lib/alloca_.h +++ b/lib/alloca_.h @@ -21,7 +21,7 @@ "config.h", not later. */ #ifndef _ALLOCA_H -#define _ALLOCA_H +# define _ALLOCA_H /* alloca(N) returns a pointer (void* or char*) to N bytes of memory allocated on the stack, and which will last until the function returns. @@ -34,35 +34,35 @@ request, the program just crashes. */ -#ifdef __GNUC__ -# ifndef alloca -# define alloca __builtin_alloca -# endif -#else -# ifdef _MSC_VER -# include -# define alloca _alloca +# ifdef __GNUC__ +# ifndef alloca +# define alloca __builtin_alloca +# endif # else -# if HAVE_ALLOCA_H -# include +# ifdef _MSC_VER +# include +# define alloca _alloca # else -# ifdef _AIX - #pragma alloca +# if HAVE_ALLOCA_H +# include # else -# ifdef __hpux /* This section must match that of bison generated files. */ -# ifdef __cplusplus +# ifdef _AIX + # pragma alloca +# else +# ifdef __hpux /* This section must match that of bison generated files. */ +# ifdef __cplusplus extern "C" void *alloca (unsigned int); -# else /* not __cplusplus */ +# else /* not __cplusplus */ extern void *alloca (); -# endif /* not __cplusplus */ -# else /* not __hpux */ -# ifndef alloca +# endif /* not __cplusplus */ +# else /* not __hpux */ +# ifndef alloca extern char *alloca (); -# endif -# endif /* __hpux */ +# endif +# endif /* __hpux */ +# endif # endif # endif # endif -#endif #endif /* _ALLOCA_H */