From 4b46dbf6d639a40bdeae0c280861505b937f34b9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 13 Aug 2006 17:30:57 +0000 Subject: [PATCH] Only declare nmem_text_node_cdata if Libxml2 is available --- include/yaz/nmem.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/yaz/nmem.h b/include/yaz/nmem.h index 189b25d..c5802e4 100644 --- a/include/yaz/nmem.h +++ b/include/yaz/nmem.h @@ -23,7 +23,7 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Id: nmem.h,v 1.20 2006-08-11 12:50:23 adam Exp $ + * $Id: nmem.h,v 1.21 2006-08-13 17:30:57 adam Exp $ */ /** @@ -97,8 +97,10 @@ YAZ_EXPORT void nmem_strsplit(NMEM nmem, const char *delim, YAZ_EXPORT void nmem_strsplit_blank(NMEM nmem, const char *dstr, char ***darray, int *num); +#if YAZ_HAVE_XML2 /** \brief copies TEXT Libxml2 node data to NMEM */ YAZ_EXPORT char *nmem_text_node_cdata(const xmlNode *ptr, NMEM nmem); +#endif /** \brief creates and allocates integer for NMEM */ YAZ_EXPORT int *nmem_intdup (NMEM mem, int v); -- 1.7.10.4