From: Adam Dickmeiss Date: Thu, 6 Jul 2006 07:45:07 +0000 (+0000) Subject: Fix compilation on systems where Libxml2 does not exist X-Git-Tag: YAZ.2.1.26~44 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=11d1675ce7431f8b58a9b4d458c1b7a929a51959;p=yaz-moved-to-github.git Fix compilation on systems where Libxml2 does not exist --- diff --git a/include/yaz/nfaxml.h b/include/yaz/nfaxml.h index 55fc383..8ddb0a2 100644 --- a/include/yaz/nfaxml.h +++ b/include/yaz/nfaxml.h @@ -1,6 +1,6 @@ /* Copyright (C) 2006, Index Data ApS * See the file LICENSE for details. - * $Id: nfaxml.h,v 1.2 2006-07-06 06:08:19 adam Exp $ + * $Id: nfaxml.h,v 1.3 2006-07-06 07:45:07 adam Exp $ */ /** @@ -54,7 +54,7 @@ YAZ_BEGIN_CDECL * call xmlGetLastError() to get the details of the error. * */ -yaz_nfa *yaz_nfa_parse_xml_doc(xmlDocPtr doc); +yaz_nfa *yaz_nfa_parse_xml_doc(void *xmlDocPtr); /** \brief Parse the NFA from a file diff --git a/src/nfaxml.c b/src/nfaxml.c index 71a2834..60764a1 100644 --- a/src/nfaxml.c +++ b/src/nfaxml.c @@ -1,7 +1,7 @@ /* Copyright (C) 2006, Index Data ApS * See the file LICENSE for details. * - * $Id: nfaxml.c,v 1.2 2006-07-06 06:09:12 adam Exp $ + * $Id: nfaxml.c,v 1.3 2006-07-06 07:45:07 adam Exp $ */ /** @@ -23,11 +23,13 @@ #include #include #include - +#include /** \brief Parse the NFA from a XML document */ -yaz_nfa *yaz_nfa_parse_xml_doc(xmlDocPtr doc){ +yaz_nfa *yaz_nfa_parse_xml_doc(void *xmlDocPtr) +{ + xmlDocPtr doc = (xmlDocPtr) *xmlDocPtr; if (!doc) return 0;