]> git.meshlink.io Git - catta/blobdiff - avahi-common/i18n.c
make avahi_init_i18n a no-op when compiling without NLS
[catta] / avahi-common / i18n.c
index 20f3b3aaded92107163bfcd7ad219878e3f892eb..509abbe787db2982ec2e76516d49eef88c381b2e 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /***
   This file is part of avahi.
 
 #include "i18n.h"
 
 void avahi_init_i18n(void) {
+#ifdef ENABLE_NLS
 
     /* Not really thread safe, but this doesn't matter much since
      * bindtextdomain is supposed to be idempotent anyway. */
+    /* FIXME: but is bindtextdomain reentrant!? */
 
     static int done = 0;
 
@@ -37,4 +37,6 @@ void avahi_init_i18n(void) {
         bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
         done = 1;
     }
+
+#endif /* ENABLE_NLS */
 }