Lars Gullik Bjønnes wrote:

/* Define as const if the declaration of iconv() needs const. */
#define ICONV_CONST


char ICONV_CONST * inbuf = const_cast<char ICONV_CONST *>(&buf[0]);

ICONV_CONST will be defined as 'const' when the prototype of iconv
requires const in its first parameter.
I'd prefere this solution.

I have committed it:

URL: http://www.lyx.org/trac/changeset/14671
Log:
Windows compilation fixes.

Modified:
    lyx-devel/trunk/src/support/unicode.C

Reply via email to