On Wed, 02 Jul 2008 13:33:56 +0300, Danil Y. Zagornov <[EMAIL PROTECTED]> wrote:

On Wed, 2 Jul 2008 15:05:55 +0600
"Danil Y. Zagornov" <[EMAIL PROTECTED]> wrote:
Hi
I change
char* inPtr = const_cast<char*>(array);
to
const char* inPtr = const_cast<char*>(array);
in file translate.cpp and all builds without errors.

Linux iconv declaration:

size_t iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);

FreeBSD:

size_t iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);

We need some C Preprocessor way to detect the OS.

--
Eugene Paskevich             |   *==)-----------   |     Plug me into
[EMAIL PROTECTED]        |   -----------(==*   |      The Matrix

Reply via email to