]> granicus.if.org Git - flex/commitdiff
conditional compile gettext initialization
authorWill Estes <wlestes@users.sourceforge.net>
Tue, 23 Apr 2002 10:23:10 +0000 (10:23 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Tue, 23 Apr 2002 10:23:10 +0000 (10:23 +0000)
main.c

diff --git a/main.c b/main.c
index 957a72f0d2c08faa189c8646a541b17bb9c1a70b..b82aee4bbca8fcc7a06bed16c3782aa0d5023a01 100644 (file)
--- 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);
 }