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

@ -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;