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 | |
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
-rw-r--r-- | src/gettext.h | 2 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 2 insertions, 2 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> @@ -197,7 +197,7 @@ int flex_main (int argc, char *argv[]) /* Wrapper around flex_main, so flex_main can be built as a library. */ int main (int argc, char *argv[]) { -#if ENABLE_NLS +#ifdef ENABLE_NLS #if HAVE_LOCALE_H setlocale (LC_MESSAGES, ""); setlocale (LC_CTYPE, ""); |