From: Bruno Haible Date: Sun, 20 May 2007 20:40:13 +0000 (+0000) Subject: Update from gnulib. X-Git-Tag: v0.17~393 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeae57872eb0c51040f1075171e2bd0829105ded;p=thirdparty%2Fgettext.git Update from gnulib. --- diff --git a/gettext-runtime/libasprintf/ChangeLog b/gettext-runtime/libasprintf/ChangeLog index bf51ca39e..a5a78e104 100644 --- a/gettext-runtime/libasprintf/ChangeLog +++ b/gettext-runtime/libasprintf/ChangeLog @@ -1,3 +1,11 @@ +2007-03-30 Bruno Haible + + * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_. + +2006-06-19 Paul Eggert + + * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare. + 2007-03-08 Bruno Haible * lib/vasnprintf.h: Convert tabs in the middle of lines to spaces. diff --git a/gettext-runtime/libasprintf/alloca_.h b/gettext-runtime/libasprintf/alloca_.h index e41802b47..a953bd4e7 100644 --- a/gettext-runtime/libasprintf/alloca_.h +++ b/gettext-runtime/libasprintf/alloca_.h @@ -1,5 +1,5 @@ /* Memory allocation on the stack. - Copyright (C) 1995, 1999, 2001-2005 Free Software Foundation, Inc. + Copyright (C) 1995, 1999, 2001-2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -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 -# define alloca _alloca +#ifndef alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca # 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 /* _GNULIB_ALLOCA_H */ +#endif /* _GL_ALLOCA_H */