From: Bruno Haible Date: Fri, 15 Mar 2002 17:23:38 +0000 (+0000) Subject: Avoid warning on Solaris 2.5. X-Git-Tag: 0.11.2-branchpoint~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81edb4f06997af8928109cf38963d7ad59ec38d7;p=thirdparty%2Fgettext.git Avoid warning on Solaris 2.5. --- diff --git a/intl/ChangeLog b/intl/ChangeLog index de8a5a94b..d99a9cdbc 100644 --- a/intl/ChangeLog +++ b/intl/ChangeLog @@ -1,3 +1,9 @@ +2002-03-15 Bruno Haible + + * libgnuintl.h (LC_MESSAGES): Don't define on Solaris 2.5, to avoid + a warning. + Reported by Stephen Gildea . + 2002-03-12 Bruno Haible * gettext-0.11.1 released. diff --git a/intl/libgnuintl.h b/intl/libgnuintl.h index 7fd547ef0..1387e70c7 100644 --- a/intl/libgnuintl.h +++ b/intl/libgnuintl.h @@ -1,5 +1,5 @@ /* Message catalogs for internationalization. - Copyright (C) 1995-1997, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1995-1997, 2000-2002 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 @@ -24,10 +24,11 @@ /* The LC_MESSAGES locale category is the category used by the functions gettext() and dgettext(). It is specified in POSIX, but not in ANSI C. On systems that don't define it, use an arbitrary value instead. - On Solaris, defines __LOCALE_H then includes (i.e. - this file!) and then only defines LC_MESSAGES. To avoid a redefinition - warning, don't define LC_MESSAGES in this case. */ -#if !defined LC_MESSAGES && !defined __LOCALE_H + On Solaris, defines __LOCALE_H (or _LOCALE_H in Solaris 2.5) + then includes (i.e. this file!) and then only defines + LC_MESSAGES. To avoid a redefinition warning, don't define LC_MESSAGES + in this case. */ +#if !defined LC_MESSAGES && !(defined __LOCALE_H || (defined _LOCALE_H && defined __sun)) # define LC_MESSAGES 1729 #endif