summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWill Estes <wlestes@users.sourceforge.net>2002-04-23 10:23:10 +0000
committerWill Estes <wlestes@users.sourceforge.net>2002-04-23 10:23:10 +0000
commitd19651592dab82f26273409a6b7ec2e49dfd22ae (patch)
tree388800ad10c24f863dbe3ce211f3a23afbe15dcb /main.c
parent0780bdf0efc2cf929740b151b9eeda15305b155c (diff)
conditional compile gettext initialization
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 957a72f..b82aee4 100644
--- a/main.c
+++ b/main.c
@@ -182,9 +182,11 @@ char **argv;
/* Wrapper around flex_main, so flex_main can be built as a library. */
int main( argc, argv )
{
+#if ENABLE_NLS
setlocale(LC_MESSAGES, "");
textdomain(PACKAGE);
bindtextdomain(PACKAGE, LOCALEDIR);
+#endif
return flex_main(argc,argv);
}