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:
Richard Frith-MacDonald 2012-10-22 04:22:25 +00:00
parent afbd546131
commit eaf39627d5
2 changed files with 11 additions and 0 deletions

View file

@ -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> 2012-10-20 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSConnection.m: Use NSUInteger for array indexes/counters. * Source/NSConnection.m: Use NSUInteger for array indexes/counters.

View file

@ -983,7 +983,11 @@ static NSMapTable *nodeNames = 0;
1, 1,
"utf-8"); "utf-8");
xmlOutputBufferFlush(buf); xmlOutputBufferFlush(buf);
#if LIBXML_VERSION < 20900
string = UTF8StrLen(buf->buffer->content, buf->buffer->use); string = UTF8StrLen(buf->buffer->content, buf->buffer->use);
#else
string = UTF8StrLen(xmlBufContent(buf->buffer), xmlBufUse(buf->buffer));
#endif
xmlOutputBufferClose(buf); xmlOutputBufferClose(buf);
} }
return string; return string;