-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,13 @@ | |
|
||
namespace boost { | ||
namespace locale { | ||
#if defined(__ICONV_F_HIDE_INVALID) && defined(__FreeBSD__) | ||
inline size_t call_iconv(iconv_t d,char **in,size_t *insize,char **out,size_t *outsize) | ||
{ | ||
char const **rin = const_cast<char const **>(in); | ||
return __iconv(d,rin,insize,out,outsize,__ICONV_F_HIDE_INVALID,0); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
artyom-beilis
via email
Author
Member
|
||
} | ||
#else | ||
extern "C" { | ||
typedef size_t (*gnu_iconv_ptr_type)(iconv_t d,char const **in,size_t *insize,char **out,size_t *outsize); | ||
typedef size_t (*posix_iconv_ptr_type)(iconv_t d,char **in,size_t *insize,char **out,size_t *outsize); | ||
|
@@ -29,6 +36,7 @@ namespace boost { | |
{ | ||
return do_iconv( iconv, d, in,insize,out,outsize); | ||
} | ||
#endif | ||
|
||
} // locale | ||
} // boost | ||
|
This change broke compilations on FreeBSD.
Here is an error message from my regression runner (a.k.a. Flast-FreeBSD10-gcc-4.8.5~gnu++11).