Line 0
Link Here
|
|
|
1 |
--- libs/locale/src/util/iconv.hpp.orig 2017-09-02 09:56:14 UTC |
2 |
+++ libs/locale/src/util/iconv.hpp |
3 |
@@ -12,27 +12,7 @@ |
4 |
|
5 |
namespace boost { |
6 |
namespace locale { |
7 |
-#if defined(__ICONV_F_HIDE_INVALID) && defined(__FreeBSD__) |
8 |
extern "C" { |
9 |
- typedef size_t (*const_iconv_ptr_type)(iconv_t d,char const **in,size_t *insize,char **out,size_t *outsize,uint32_t,size_t *); |
10 |
- typedef size_t (*nonconst_iconv_ptr_type)(iconv_t d,char **in,size_t *insize,char **out,size_t *outsize,uint32_t,size_t *); |
11 |
- } |
12 |
- inline size_t do_iconv(const_iconv_ptr_type ptr,iconv_t d,char **in,size_t *insize,char **out,size_t *outsize) |
13 |
- { |
14 |
- char const **rin = const_cast<char const **>(in); |
15 |
- return ptr(d,rin,insize,out,outsize,__ICONV_F_HIDE_INVALID,0); |
16 |
- } |
17 |
- inline size_t do_iconv(nonconst_iconv_ptr_type ptr,iconv_t d,char **in,size_t *insize,char **out,size_t *outsize) |
18 |
- { |
19 |
- return ptr(d,in,insize,out,outsize,__ICONV_F_HIDE_INVALID,0); |
20 |
- } |
21 |
- inline size_t call_iconv(iconv_t d,char **in,size_t *insize,char **out,size_t *outsize) |
22 |
- { |
23 |
- char const **rin = const_cast<char const **>(in); |
24 |
- return do_iconv(__iconv, d, in,insize,out,outsize); |
25 |
- } |
26 |
-#else |
27 |
- extern "C" { |
28 |
typedef size_t (*gnu_iconv_ptr_type)(iconv_t d,char const **in,size_t *insize,char **out,size_t *outsize); |
29 |
typedef size_t (*posix_iconv_ptr_type)(iconv_t d,char **in,size_t *insize,char **out,size_t *outsize); |
30 |
} |
31 |
@@ -49,8 +29,6 @@ namespace boost { |
32 |
{ |
33 |
return do_iconv( iconv, d, in,insize,out,outsize); |
34 |
} |
35 |
-#endif |
36 |
- |
37 |
} // locale |
38 |
} // boost |
39 |
|