]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update from gnulib.
authorBruno Haible <bruno@clisp.org>
Sun, 20 May 2007 20:40:13 +0000 (20:40 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:49 +0000 (12:14 +0200)
gettext-runtime/libasprintf/ChangeLog
gettext-runtime/libasprintf/alloca_.h

index bf51ca39e9500ae99805854816ba24b1da499c5a..a5a78e104536267ce200f969e8d87bc0252327e2 100644 (file)
@@ -1,3 +1,11 @@
+2007-03-30  Bruno Haible  <bruno@clisp.org>
+
+       * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
+
+2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
+
 2007-03-08  Bruno Haible  <bruno@clisp.org>
 
        * lib/vasnprintf.h: Convert tabs in the middle of lines to spaces.
index e41802b47f486a115cb90535d3bef2cbff0b45cb..a953bd4e7a340a25bedf0882f0b058bb6f71beb0 100644 (file)
@@ -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.
        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 */