summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2017-11-02 14:24:23 +0000
committerWill Estes <westes575@gmail.com>2017-11-03 10:39:32 -0400
commit661d603b65385f62f372acd2017e5af2e0f0cd50 (patch)
tree8e8a38ecae530767fa6e63481ff067ce67b5ac7b /src/main.c
parenta17d79e9c722a6735b6d2a8f152287404f27df32 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index bf8c44d..65285a0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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, "");