diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2017-11-02 14:24:23 +0000 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2017-11-03 10:39:32 -0400 |
commit | 661d603b65385f62f372acd2017e5af2e0f0cd50 (patch) | |
tree | 8e8a38ecae530767fa6e63481ff067ce67b5ac7b /src/gettext.h | |
parent | a17d79e9c722a6735b6d2a8f152287404f27df32 (diff) |
build: use #ifdef for ENABLE_NLS check.
config.h will have either define ENABLE_NLS or not define it. If it is
not defined we get a -Wundef warning due to using #if with an
undefined macro
Diffstat (limited to 'src/gettext.h')
-rw-r--r-- | src/gettext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gettext.h b/src/gettext.h index ea67f30..3f62961 100644 --- a/src/gettext.h +++ b/src/gettext.h @@ -20,7 +20,7 @@ #define _LIBGETTEXT_H 1 /* NLS can be disabled through the configure --disable-nls option. */ -#if ENABLE_NLS +#ifdef ENABLE_NLS /* Get declarations of GNU message catalog functions. */ # include <libintl.h> |