Lines 1-17
Link Here
|
1 |
--- include/iconv.h.in.orig 2011-08-07 17:48:03 UTC |
1 |
--- include/iconv.h.in.orig 2019-04-26 18:48:39 UTC |
2 |
+++ include/iconv.h.in |
2 |
+++ include/iconv.h.in |
3 |
@@ -21,8 +21,10 @@ |
3 |
@@ -20,8 +20,10 @@ |
4 |
#ifndef _LIBICONV_H |
4 |
#ifndef _LIBICONV_H |
5 |
#define _LIBICONV_H |
5 |
#define _LIBICONV_H |
6 |
|
6 |
|
7 |
+#ifndef LIBICONV_PLUG |
7 |
+#ifndef LIBICONV_PLUG |
8 |
#define _LIBICONV_VERSION 0x010E /* version number: (major<<8) + minor */ |
8 |
#define _LIBICONV_VERSION 0x0110 /* version number: (major<<8) + minor */ |
9 |
extern @DLL_VARIABLE@ int _libiconv_version; /* Likewise */ |
9 |
extern @DLL_VARIABLE@ int _libiconv_version; /* Likewise */ |
10 |
+#endif |
10 |
+#endif |
11 |
|
11 |
|
12 |
/* We would like to #include any system header file which could define |
12 |
/* We would like to #include any system header file which could define |
13 |
iconv_t, 1. in order to eliminate the risk that the user gets compilation |
13 |
iconv_t, 1. in order to eliminate the risk that the user gets compilation |
14 |
@@ -94,7 +96,6 @@ extern int iconv_close (iconv_t cd); |
14 |
@@ -93,7 +95,6 @@ extern int iconv_close (iconv_t cd); |
15 |
#endif |
15 |
#endif |
16 |
|
16 |
|
17 |
|
17 |
|
Lines 19-25
Link Here
|
19 |
|
19 |
|
20 |
/* Nonstandard extensions. */ |
20 |
/* Nonstandard extensions. */ |
21 |
|
21 |
|
22 |
@@ -127,12 +128,16 @@ typedef struct { |
22 |
@@ -126,12 +127,16 @@ typedef struct { |
23 |
/* Allocates descriptor for code conversion from encoding ‘fromcode’ to |
23 |
/* Allocates descriptor for code conversion from encoding ‘fromcode’ to |
24 |
encoding ‘tocode’ into preallocated memory. Returns an error indicator |
24 |
encoding ‘tocode’ into preallocated memory. Returns an error indicator |
25 |
(0 or -1 with errno set). */ |
25 |
(0 or -1 with errno set). */ |
Lines 36-42
Link Here
|
36 |
extern int iconvctl (iconv_t cd, int request, void* argument); |
36 |
extern int iconvctl (iconv_t cd, int request, void* argument); |
37 |
|
37 |
|
38 |
/* Hook performed after every successful conversion of a Unicode character. */ |
38 |
/* Hook performed after every successful conversion of a Unicode character. */ |
39 |
@@ -210,9 +215,15 @@ struct iconv_fallbacks { |
39 |
@@ -209,9 +214,15 @@ struct iconv_fallbacks { |
40 |
#define ICONV_SET_DISCARD_ILSEQ 4 /* const int *argument */ |
40 |
#define ICONV_SET_DISCARD_ILSEQ 4 /* const int *argument */ |
41 |
#define ICONV_SET_HOOKS 5 /* const struct iconv_hooks *argument */ |
41 |
#define ICONV_SET_HOOKS 5 /* const struct iconv_hooks *argument */ |
42 |
#define ICONV_SET_FALLBACKS 6 /* const struct iconv_fallbacks *argument */ |
42 |
#define ICONV_SET_FALLBACKS 6 /* const struct iconv_fallbacks *argument */ |
Lines 52-58
Link Here
|
52 |
extern void iconvlist (int (*do_one) (unsigned int namescount, |
52 |
extern void iconvlist (int (*do_one) (unsigned int namescount, |
53 |
const char * const * names, |
53 |
const char * const * names, |
54 |
void* data), |
54 |
void* data), |
55 |
@@ -224,6 +235,7 @@ extern const char * iconv_canonicalize (const char * n |
55 |
@@ -223,6 +234,7 @@ extern const char * iconv_canonicalize ( |
56 |
|
56 |
|
57 |
/* Support for relocatable packages. */ |
57 |
/* Support for relocatable packages. */ |
58 |
|
58 |
|
Lines 60-66
Link Here
|
60 |
/* Sets the original and the current installation prefix of the package. |
60 |
/* Sets the original and the current installation prefix of the package. |
61 |
Relocation simply replaces a pathname starting with the original prefix |
61 |
Relocation simply replaces a pathname starting with the original prefix |
62 |
by the corresponding pathname with the current prefix instead. Both |
62 |
by the corresponding pathname with the current prefix instead. Both |
63 |
@@ -231,12 +243,12 @@ extern const char * iconv_canonicalize (const char * n |
63 |
@@ -230,12 +242,12 @@ extern const char * iconv_canonicalize ( |
64 |
instead of "/"). */ |
64 |
instead of "/"). */ |
65 |
extern void libiconv_set_relocation_prefix (const char *orig_prefix, |
65 |
extern void libiconv_set_relocation_prefix (const char *orig_prefix, |
66 |
const char *curr_prefix); |
66 |
const char *curr_prefix); |