diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-09-11 15:44:29 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-09-11 15:44:29 +0000 |
commit | e3b403395fc97784ab14fc42a4e0f572a515cd92 (patch) | |
tree | 42166c9c65a1184a3323995b2bef73117bf1a5bf /games/liblcf/files/patch-src_reader__util.cpp | |
parent | c64c608e1281afd9989c60288f1f72e05a4d3348 (diff) | |
download | ports-e3b403395fc97784ab14fc42a4e0f572a515cd92.tar.gz ports-e3b403395fc97784ab14fc42a4e0f572a515cd92.zip |
liblcf is a library to handle RPG Maker 2000 and 2003 game data.
It can read and write LCF and XML files.
liblcf is part of the EasyRPG Project.
WWW: https://easy-rpg.org/
Notes
Notes:
svn path=/head/; revision=421827
Diffstat (limited to 'games/liblcf/files/patch-src_reader__util.cpp')
-rw-r--r-- | games/liblcf/files/patch-src_reader__util.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/games/liblcf/files/patch-src_reader__util.cpp b/games/liblcf/files/patch-src_reader__util.cpp new file mode 100644 index 000000000000..ce8c058ca3b2 --- /dev/null +++ b/games/liblcf/files/patch-src_reader__util.cpp @@ -0,0 +1,15 @@ +--- src/reader_util.cpp.orig 2015-09-14 08:49:23 UTC ++++ src/reader_util.cpp +@@ -310,11 +310,7 @@ std::string ReaderUtil::Recode(const std + size_t dst_size = str_to_encode.size() * 5 + 10; + char *dst = new char[dst_size]; + size_t dst_left = dst_size; +-# ifdef ICONV_CONST +- char ICONV_CONST *p = src; +-# else +- char *p = src; +-# endif ++ char const *p = src; + char *q = dst; + size_t status = iconv(cd, &p, &src_left, &q, &dst_left); + iconv_close(cd); |