From cde62682dfd40070308af1c2b484a204977e1fa6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 22 Apr 2017 01:40:18 +0200 Subject: [PATCH] Avoid -Wundef warning in gettext.h. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * gnulib-local/lib/gettext.h: Test the value of ENABLE_NLS only if it is defined. Reported by Tim Rühsen in . --- gnulib-local/lib/gettext.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.47.3