[Top][All Lists]

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

Re: Build error: "ENABLE_NLS" is not defined

From: Grégoire Sutre
Subject: Re: Build error: "ENABLE_NLS" is not defined
Date: Tue, 12 Jan 2010 20:31:32 +0100
User-agent: Thunderbird (X11/20091027)

address@hidden wrote:

This fix breaks when ENABLE_NLS is defined as 0.

AFAICS, in the implementation of AM_GNU_GETTEXT, ENABLE_NLS is either not defined or set to 1.

But I agree that my proposed fix is too dependent on the implementation of AM_GNU_GETTEXT, which may change.

Another option would be to replace #if ENABLE_NLS by #if defined(ENABLE_NLS) && ENABLE_NLS.

This gcc bug is blocking a better solution:

I didn't know that this was a gcc bug. It felt like a normal behavior to me to get an error with both -Wundef and -Werror in that case. From the gcc man page:

     Make all warnings into errors.

     Warn if an undefined identifier is evaluated in an #if directive.


reply via email to

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