diff options
author | Bruno Haible <bruno@clisp.org> | 2007-10-06 00:50:02 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:15:14 +0200 |
commit | 8d2ebe82fa503e76ae3ebe5a83e8dd65c6c6f4a0 (patch) | |
tree | 6f25d6b257b646ada5625c36631b519ce4f7d60b /gnulib-local/lib | |
parent | 3b1e04ce5168711eafa23fd83348ecdac8dc15a8 (diff) | |
download | external_gettext-8d2ebe82fa503e76ae3ebe5a83e8dd65c6c6f4a0.zip external_gettext-8d2ebe82fa503e76ae3ebe5a83e8dd65c6c6f4a0.tar.gz external_gettext-8d2ebe82fa503e76ae3ebe5a83e8dd65c6c6f4a0.tar.bz2 |
Update from gnulib.
Diffstat (limited to 'gnulib-local/lib')
-rw-r--r-- | gnulib-local/lib/alloca.in.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/gnulib-local/lib/alloca.in.h b/gnulib-local/lib/alloca.in.h index 5da2c12..0e92952 100644 --- a/gnulib-local/lib/alloca.in.h +++ b/gnulib-local/lib/alloca.in.h @@ -22,8 +22,8 @@ /* Avoid using the symbol _ALLOCA_H here, as Bison assumes _ALLOCA_H means there is a real alloca function. */ -#ifndef _GNULIB_ALLOCA_H -#define _GNULIB_ALLOCA_H +#ifndef _GL_ALLOCA_H +#define _GL_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. @@ -36,35 +36,35 @@ request, the program just crashes. */ -#ifdef __GNUC__ -# ifndef alloca -# define alloca __builtin_alloca -# endif -#else -# ifdef _MSC_VER -# include <malloc.h> -# define alloca _alloca +#ifndef alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca # else -# if HAVE_ALLOCA_H -# include <alloca.h> +# ifdef _MSC_VER +# include <malloc.h> +# define alloca _alloca # else -# ifdef _AIX - #pragma alloca +# if HAVE_ALLOCA_H +# include <alloca.h> # 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 /* _GNULIB_ALLOCA_H */ +#endif /* _GL_ALLOCA_H */ |