]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update from gnulib. Fixes a compilation failure with HP-UX cc.
authorBruno Haible <bruno@clisp.org>
Sat, 12 Feb 2005 15:34:08 +0000 (15:34 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:13 +0000 (12:12 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/obstack.c

index 84b3b524285914ac59ed27bf5f5bea92020562d7..5009e1518fd4b41d39a607fb49bf854759ef4ef3 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-12  Bruno Haible  <bruno@clisp.org>
+
+       * obstack.c: Update from current gnulib version.
+
 2005-02-10  Bruno Haible  <bruno@clisp.org>
 
        * allocsa.h (sa_alignof): Define differently with AIX xlc, to avoid
index 20c2df53701904af90df6350fb9a7e3171607dbf..6a94e61cb08b6dc425536d7f952597ccaa88d22d 100644 (file)
@@ -1,5 +1,5 @@
 /* obstack.c - subroutines used implicitly by object stack macros
-   Copyright (C) 1988-1994, 1996-1999, 2000-2004 Free Software Foundation, Inc.
+   Copyright (C) 1988-1994, 1996-1999, 2000-2005 Free Software Foundation, Inc.
    This file is part of the GNU C Library.  Its master source is NOT part of
    the C library, however.  The master source lives in /gd/gnu/lib.
 
@@ -74,12 +74,17 @@ union fooround
   long double d;
   void *p;
 };
+struct fooalign
+{
+  char c;
+  union fooround u;
+};
 /* If malloc were really smart, it would round addresses to DEFAULT_ALIGNMENT.
    But in fact it might be less smart and round addresses to as much as
    DEFAULT_ROUNDING.  So we prepare for it to do that.  */
 enum
   {
-    DEFAULT_ALIGNMENT = offsetof (struct { char c; union fooround u; }, u),
+    DEFAULT_ALIGNMENT = offsetof (struct fooalign, u),
     DEFAULT_ROUNDING = sizeof (union fooround)
   };