[PATCH] src/main.c, allow compile with --disable-nls
- From: Nuno Monteiro <nuno monteiro ptnix com>
- To: balsa-list gnome org
- Subject: [PATCH] src/main.c, allow compile with --disable-nls
- Date: Fri, 27 Jul 2001 01:51:28 +0100
Hi!
I have been unable to compile balsa out of the box with `--disable-nls'
configure option for quite some time now, the build chokes on src/main.c.
I've seen this problem on both cvs and regular releases, because there is, I
suppose, a missing ifdef. This two liner allows me to compile flawlessly,
either with or without `--disable-nls'. Sorry if its a known, already or in
the process of being fixed, issue. It applies to the current cvs tree, as of
July 27, 01:28:00 WEST.
--- main.c.orig Fri Jul 27 01:28:16 2001
+++ main.c Fri Jul 27 01:28:45 2001
@@ -323,10 +323,12 @@
GConfError *gconf_error;
#endif
+#ifdef ENABLE_NLS
/* Initialize the i18n stuff */
bindtextdomain(PACKAGE, GNOMELOCALEDIR);
textdomain(PACKAGE);
setlocale(LC_CTYPE, gnome_i18n_get_language());
+#endif
#ifdef BALSA_USE_THREADS
/* initiate thread mutexs, variables */
Best Regards,
// nuno
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]