mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +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
|
@ -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