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/main.c | |
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/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, ""); |