* lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00022.html>.
+2017-04-21 Bruno Haible <bruno@clisp.org>
+
+ gettext-h: Avoid -Wundef warning.
+ * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
+ Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00022.html>.
+
2017-04-05 Tim Rühsen <tim.ruehsen@gmx.de>
error: Avoid "function declaration isn't a prototype" warning.
#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 <libintl.h>