mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
fixup for recent libxml2
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35730 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
afbd546131
commit
eaf39627d5
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2012-10-22 Rene Hexel <rhexel+savannah@mac.com>
|
||||
|
||||
* Source/Additions/GSXML.m:
|
||||
In libxml2 the content and use fields have become private and are only
|
||||
exposed through xmlBufContent() and xmlBufUse() since libxml-2.9.0.
|
||||
Use those macros for newer versions of libxml2.
|
||||
|
||||
2012-10-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSConnection.m: Use NSUInteger for array indexes/counters.
|
||||
|
|
|
@ -983,7 +983,11 @@ static NSMapTable *nodeNames = 0;
|
|||
1,
|
||||
"utf-8");
|
||||
xmlOutputBufferFlush(buf);
|
||||
#if LIBXML_VERSION < 20900
|
||||
string = UTF8StrLen(buf->buffer->content, buf->buffer->use);
|
||||
#else
|
||||
string = UTF8StrLen(xmlBufContent(buf->buffer), xmlBufUse(buf->buffer));
|
||||
#endif
|
||||
xmlOutputBufferClose(buf);
|
||||
}
|
||||
return string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue