From: Bruno Haible Date: Fri, 21 Apr 2017 23:40:18 +0000 (+0200) Subject: Avoid -Wundef warning in gettext.h. X-Git-Tag: v0.20~470 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cde62682dfd40070308af1c2b484a204977e1fa6;p=thirdparty%2Fgettext.git Avoid -Wundef warning in gettext.h. * gnulib-local/lib/gettext.h: Test the value of ENABLE_NLS only if it is defined. Reported by Tim Rühsen in . --- diff --git a/gnulib-local/lib/gettext.h b/gnulib-local/lib/gettext.h index 3d4233c72..75f59f609 100644 --- a/gnulib-local/lib/gettext.h +++ b/gnulib-local/lib/gettext.h @@ -18,8 +18,9 @@ #ifndef _LIBGETTEXT_H #define _LIBGETTEXT_H 1 -/* NLS can be disabled through the configure --disable-nls option. */ -#if ENABLE_NLS +/* NLS can be disabled through the configure --disable-nls option + or through "#define ENABLE NLS 0" before including this file. */ +#if defined ENABLE_NLS && ENABLE_NLS /* Get declarations of GNU message catalog functions. */ # include