bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gettext patches for cygwin #4: accessing fields of exported structs/


From: Bruno Haible
Subject: Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays
Date: Mon, 21 Nov 2005 14:15:42 +0100
User-agent: KMail/1.5

Charles Wilson wrote:
> Cygwin is a windows-ish platform, but doesn't #define WIN32.  Therefore
> we must be sure to access fields of structs indirectly.
>
> 2005-11-20  Charles Wilson  <address@hidden>
>
>       * gettext-tools/src/plural-table.c (get_plural_table_entry):
>       new accessor function
>       * gettext-tools/src/msgfmt.c (check_plural): use
>       get_plural_table_entry() accessor instead of plural_table[].

Thanks for the patch. But I don't want to apply this: The gettext source
code is fully valid ANSI C. I assume that the code works fine when
configuring with --disable-shared, i.e. that it's a problem introduced
by the structure of Woe32 DLLs? In this case, the workaround is to
use g++ instead of gcc to compile the source code. This workaround
works for the mingw32 platform and it is integrated into the gettext
CVS at http://savannah.gnu.org/projects/gettext. (Look at the
"if MINGW" conditionals in gettext-tools/src/Makefile.am.)
It looks likely that this workaround would also work for the cygwin
platform, since they share the same compiler and the same broken Woe32
DLL architecture. I would love to have the same workaround for Cygwin
than for mingw.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]