Commit b5782f2a by Francois Gygi

Added #if XERCESC_3 for compilation with Xerces-C 3.x.x


git-svn-id: http://qboxcode.org/svn/qb/trunk@838 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 2a632885
......@@ -60,8 +60,13 @@ void StructuredDocumentHandler::startElement(const XMLCh* const uri,
}
////////////////////////////////////////////////////////////////////////////////
#if XERCESC_3
void StructuredDocumentHandler::characters(const XMLCh* const chars,
const XMLSize_t length)
#else
void StructuredDocumentHandler::characters(const XMLCh* const chars,
const unsigned int length)
#endif
{
#if TIMING
Timer tm;
......
......@@ -61,7 +61,11 @@ class StructuredDocumentHandler : public DefaultHandler
void startElement(const XMLCh* const uri,const XMLCh* const localname,
const XMLCh* const qname, const Attributes& attributes);
#if XERCESC_3
void characters(const XMLCh* const chars, const XMLSize_t length);
#else
void characters(const XMLCh* const chars, const unsigned int length);
#endif
void endElement(const XMLCh* const uri, const XMLCh* const localname,
const XMLCh* const qname);
void ignorableWhitespace(const XMLCh* const chars,
......
......@@ -405,7 +405,7 @@ void WavefunctionHandler::endElement(const XMLCh* const uri,
{
// base64 encoding
unsigned int length;
#ifdef XERCESC_3_0_1
#ifdef XERCESC_3
XMLByte* b = Base64::decode((XMLByte*)content.c_str(),
(XMLSize_t*) &length);
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment