From: Abdelrazak Younes Date: Mon, 14 Aug 2006 14:19:52 +0000 (+0000) Subject: Windows compilation fixes. X-Git-Tag: 1.6.10~12826 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bd61a7a387cf8fceef62e8c1379de1b281d4f2f1;p=lyx.git Windows compilation fixes. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14671 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/unicode.C b/src/support/unicode.C index d32c204b20..386e1e1b48 100644 --- a/src/support/unicode.C +++ b/src/support/unicode.C @@ -16,6 +16,10 @@ #include "debug.h" +#include + +#include + #include #include #include @@ -45,7 +49,7 @@ iconv_convert(std::string const & tocode, std::string const & fromcode, } } - char * inbuf = const_cast(&buf[0]); + char ICONV_CONST * inbuf = const_cast(&buf[0]); size_t inbytesleft = buf.size(); char out[1000] = { 0 }; char * outbuf = out; @@ -108,7 +112,7 @@ std::vector bytes_to_ucs4(std::vector const & bytes) { //lyxerr << "Outbuf =" << std::hex; - std::vector ucs4; + std::vector ucs4; for (size_t i = 0; i < bytes.size(); i += 4) { unsigned char const b1 = bytes[i ]; unsigned char const b2 = bytes[i + 1];