util.c

changeset 85
9f94b2e96e3b
parent 79
81e9a32b1c0c
child 109
96a557abc364
equal deleted inserted replaced
84:77a9dc0a2140 85:9f94b2e96e3b
10 #include <stdarg.h> 10 #include <stdarg.h>
11 #include <stdio.h> 11 #include <stdio.h>
12 #include <stdlib.h> 12 #include <stdlib.h>
13 #include <string.h> 13 #include <string.h>
14 14
15 #ifdef CONFIG_LOCALE 15 #include "locale.h"
16 #include <libintl.h>
17 #endif
18
19 #include "util.h" 16 #include "util.h"
20 #include "misc.h" 17 #include "misc.h"
21 18
22 19
23 static const char *progname=NULL; 20 static const char *progname=NULL;
24 21
25 22
26 void libtu_init(const char *argv0) 23 void libtu_init(const char *argv0)
27 { 24 {
28 progname=argv0; 25 progname=argv0;
29 26
30 #ifdef CONFIG_LOCALE 27 #ifndef CF_NO_LOCALE
31 textdomain(simple_basename(argv0)); 28 textdomain(simple_basename(argv0));
32 #endif 29 #endif
33 } 30 }
34 31
35 32

mercurial