From: Adam Dickmeiss Date: Sun, 13 Aug 2006 17:30:57 +0000 (+0000) Subject: Only declare nmem_text_node_cdata if Libxml2 is available X-Git-Tag: YAZ.2.1.26~3 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=4b46dbf6d639a40bdeae0c280861505b937f34b9 Only declare nmem_text_node_cdata if Libxml2 is available --- 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);