$NetBSD: patch-aa,v 1.3 2004/02/11 04:06:05 minskim Exp $ --- util/Platforms/NetBSD/NetBSDPlatformUtils.cpp.orig 2003-05-27 10:04:53.000000000 -0500 +++ util/Platforms/NetBSD/NetBSDPlatformUtils.cpp @@ -92,6 +92,8 @@ #if defined(XML_USE_ICU_TRANSCODER) #include +#elif defined (XML_USE_GNU_TRANSCODER) + #include #else // Use native transcoder. Same as -DXML_USE_NATIVE_TRANSCODER #include @@ -100,6 +102,8 @@ #if defined(XML_USE_ICU_MESSAGELOADER) #include +#elif defined(XML_USE_ICONV_MESSAGELOADER) + #include #else // Same as -DXML_USE_INMEM_MESSAGELOADER #include @@ -172,6 +176,8 @@ XMLMsgLoader* XMLPlatformUtils::loadAMsg { #if defined (XML_USE_ICU_MESSAGELOADER) retVal = new ICUMsgLoader(msgDomain); +#elif defined (XML_USE_ICONV_MESSAGELOADER) + retVal = new MsgCatalogLoader(msgDomain); #else // same as -DXML_USE_INMEM_MESSAGELOADER retVal = new InMemMsgLoader(msgDomain); @@ -199,6 +205,8 @@ XMLTransService* XMLPlatformUtils::makeT // Use ICU transcoding services. // same as -DXML_USE_ICU_MESSAGELOADER return new ICUTransService; +#elif defined (XML_USE_GNU_TRANSCODER) + return new IconvGNUTransService; #else // Use native transcoding services. // same as -DXML_USE_INMEM_MESSAGELOADER @@ -421,7 +429,7 @@ unsigned long XMLPlatformUtils::getCurre return (unsigned long)(t.tv_sec*1000 + t.tv_usec); } -XMLCh* XMLPlatformUtils::getFullPath(const XMLCh* const srcPath) +XMLCh* XMLPlatformUtils::getFullPath(const XMLCh* const srcPath, MemoryManager* const) { // @@ -463,7 +471,7 @@ bool XMLPlatformUtils::isRelative(const return true; } -XMLCh* XMLPlatformUtils::getCurrentDirectory() +XMLCh* XMLPlatformUtils::getCurrentDirectory(MemoryManager* const) { char dirBuf[PATH_MAX + 1]; char *curDir = getcwd(&dirBuf[0], PATH_MAX + 1);