trunk: changeset 1934 libtu-3-svn2darcs

Mon, 17 Jan 2005 22:02:09 +0100

author
tuomov
date
Mon, 17 Jan 2005 22:02:09 +0100
changeset 85
9f94b2e96e3b
parent 84
77a9dc0a2140
child 86
d0a4defeb2cd

trunk: changeset 1934
Fixed everything that requires locale stuff to check CF_NO_LOCALE.

private.h file | annotate | diff | comparison | revisions
util.c file | annotate | diff | comparison | revisions
--- a/private.h	Sat Oct 09 17:42:46 2004 +0200
+++ b/private.h	Mon Jan 17 22:02:09 2005 +0100
@@ -10,7 +10,7 @@
 #ifndef LIBTU_PRIVATE_H
 #define LIBTU_PRIVATE_H
 
-#ifdef CF_L10N
+#ifndef CF_NO_LOCALE
 
 #include <libintl.h>
 
--- a/util.c	Sat Oct 09 17:42:46 2004 +0200
+++ b/util.c	Mon Jan 17 22:02:09 2005 +0100
@@ -12,10 +12,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#ifdef CONFIG_LOCALE
-#include <libintl.h>
-#endif
-
+#include "locale.h"
 #include "util.h"
 #include "misc.h"
 
@@ -26,8 +23,8 @@
 void libtu_init(const char *argv0)
 {
     progname=argv0;
-    
-#ifdef CONFIG_LOCALE
+
+#ifndef CF_NO_LOCALE
     textdomain(simple_basename(argv0));
 #endif
 }

mercurial