Line 0
Link Here
|
|
|
1 |
--- include/libmp3splt/splt.h.orig 2010-04-22 12:28:38.000000000 +0400 |
2 |
+++ include/libmp3splt/splt.h 2010-04-22 12:31:02.000000000 +0400 |
3 |
@@ -52,7 +52,9 @@ |
4 |
#endif |
5 |
|
6 |
#include <limits.h> |
7 |
+#ifdef ENABLE_NLS |
8 |
#include <libintl.h> |
9 |
+#endif |
10 |
#include <locale.h> |
11 |
|
12 |
#if !HAVE_FSEEKO |
13 |
@@ -60,7 +62,11 @@ |
14 |
#define ftello ftell |
15 |
#endif |
16 |
|
17 |
+#ifdef ENABLE_NLS |
18 |
#define _(STR) dgettext(MP3SPLT_LIB_GETTEXT_DOMAIN, STR) |
19 |
+#else |
20 |
+#define _(STR) STR |
21 |
+#endif |
22 |
|
23 |
/**********************************/ |
24 |
/* splt normal or syncerror split */ |
25 |
--- src/mp3splt.c.orig 2010-04-22 12:48:29.000000000 +0400 |
26 |
+++ src/mp3splt.c 2010-04-22 12:49:02.000000000 +0400 |
27 |
@@ -58,11 +58,13 @@ splt_state *mp3splt_new_state(int *error |
28 |
} |
29 |
else |
30 |
{ |
31 |
+#ifdef ENABLE_NLS |
32 |
#ifndef __WIN32__ |
33 |
bindtextdomain(MP3SPLT_LIB_GETTEXT_DOMAIN, LOCALEDIR); |
34 |
#endif |
35 |
|
36 |
bind_textdomain_codeset(MP3SPLT_LIB_GETTEXT_DOMAIN, "UTF-8"); |
37 |
+#endif |
38 |
|
39 |
state = splt_t_new_state(state, err); |
40 |
} |