]> git.ipfire.org Git - thirdparty/gettext.git/commit
intl: Pacify pre-C99 compilers
authorDaiki Ueno <ueno@gnu.org>
Tue, 24 May 2016 03:18:07 +0000 (12:18 +0900)
committerDaiki Ueno <ueno@gnu.org>
Wed, 25 May 2016 06:25:27 +0000 (15:25 +0900)
commit77dde02ef05e63e0ae2b113546e8adb26a962e29
tree2ce365c5afa8a77dd875517afd61bab89321216d
parent68ab0dafa99f1941b3ebb47b7cf969381e7310f4
intl: Pacify pre-C99 compilers

* gettext-runtime/intl/plural-exp.h (HAVE_STRUCT_INITIALIZER): New
macro, based on the check previously in plural-exp.c.  Also add check
for __SUNPRO_C for Solaris Studio C compiler.
(GERMANIC_PLURAL): Define as 'struct expression' not 'const struct
expression' if struct/union initializers are not supported by the
compiler.
* gettext-runtime/intl/plural-exp.c: Use HAVE_STRUCT_INITIALIZER.
Reported by Dagobert Michelsen and investigated by pan7 in:
https://savannah.gnu.org/support/?108743
gettext-runtime/intl/plural-exp.c
gettext-runtime/intl/plural-exp.h