Lars Gullik Bjønnes wrote:
/* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONSTchar ICONV_CONST * inbuf = const_cast<char ICONV_CONST *>(&buf[0]); ICONV_CONST will be defined as 'const' when the prototype of iconvrequires 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