From: Bruno Haible Date: Sat, 12 Feb 2005 15:34:08 +0000 (+0000) Subject: Update from gnulib. Fixes a compilation failure with HP-UX cc. X-Git-Tag: v0.14.2~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6592a0c3912918fa4d7f3121f231a83b8f44cbd8;p=thirdparty%2Fgettext.git Update from gnulib. Fixes a compilation failure with HP-UX cc. --- diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index 84b3b5242..5009e1518 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,7 @@ +2005-02-12 Bruno Haible + + * obstack.c: Update from current gnulib version. + 2005-02-10 Bruno Haible * allocsa.h (sa_alignof): Define differently with AIX xlc, to avoid diff --git a/gettext-tools/lib/obstack.c b/gettext-tools/lib/obstack.c index 20c2df537..6a94e61cb 100644 --- a/gettext-tools/lib/obstack.c +++ b/gettext-tools/lib/obstack.c @@ -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) };