From 4f6f5da80222cdae6e4d68b5848a901e6b0cfab7 Mon Sep 17 00:00:00 2001 From: Richard Frith-Macdonald Date: Thu, 26 Apr 2001 15:35:16 +0000 Subject: [PATCH] Update for new XML code git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9712 72102866-910b-0410-8b05-ffd578937521 --- Source/NSString.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/NSString.m b/Source/NSString.m index 562c264a0..9f8c25546 100644 --- a/Source/NSString.m +++ b/Source/NSString.m @@ -3675,6 +3675,10 @@ handle_printf_atsign (FILE *stream, #if HAVE_LIBXML #include +#ifndef __XML_TREE_H__ +static int XML_ELEMENT_NODE; +#endif + static void decodeBase64Unit(const char* ptr, unsigned char *out) { @@ -4270,6 +4274,14 @@ nodeToObject(GSXMLNode* node) static void setupPl() { +#if HAVE_LIBXML +#ifndef __XML_TREE_H__ + /* + * Cache XML node information. + */ + XML_ELEMENT_NODE = [GSXMLNode typeFromDescription: @"XML_ELEMENT_NODE"]; +#endif +#endif plAlloc = (id (*)(id, SEL, NSZone*)) [NSStringClass methodForSelector: @selector(allocWithZone:)]; plInit = (id (*)(id, SEL, unichar*, unsigned))