This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [bootstrap] Tentative fix for PR 54281
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Diego Novillo <dnovillo at google dot com>
- Cc: Magnus Fromreide <magfr at lysator dot liu dot se>, <gcc-patches at gcc dot gnu dot org>, Richard Guenther <rguenther at suse dot de>, "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>
- Date: Thu, 16 Aug 2012 18:46:44 +0000
- Subject: Re: [bootstrap] Tentative fix for PR 54281
- References: <20120816115551.GA13453@google.com> <20120816175027.GA20994@bacon.lysator.liu.se> <502D3C00.30707@google.com>
On Thu, 16 Aug 2012, Diego Novillo wrote:
> diff --git a/gcc/intl.h b/gcc/intl.h
> index c4db354..745fefd 100644
> --- a/gcc/intl.h
> +++ b/gcc/intl.h
> @@ -27,8 +27,8 @@
> # define setlocale(category, locale) (locale)
> #endif
>
> -#ifdef ENABLE_NLS
> #include <libintl.h>
> +#ifdef ENABLE_NLS
I'm not sure it's safe to assume libintl.h exists on all hosts (e.g.
MinGW) unless ENABLE_NLS. (If ENABLE_NLS, the intl/ directory will have
built that header if the host didn't have it.)
--
Joseph S. Myers
joseph@codesourcery.com