From: Adam Dickmeiss Date: Fri, 27 Jan 2006 19:04:15 +0000 (+0000) Subject: Make sure this compiles even without Libxml2. X-Git-Tag: YAZ.2.1.12~15 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=be1157fee3451c37508c9ec3b4b4b8603a646c0b;p=yaz-moved-to-github.git Make sure this compiles even without Libxml2. --- diff --git a/test/tstxmlquery.c b/test/tstxmlquery.c index c84d1e9..68a86b5 100644 --- a/test/tstxmlquery.c +++ b/test/tstxmlquery.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tstxmlquery.c,v 1.2 2006-01-27 18:58:58 adam Exp $ + * $Id: tstxmlquery.c,v 1.3 2006-01-27 19:04:15 adam Exp $ */ #include @@ -13,7 +13,6 @@ #include #include -#if HAVE_XML2 static void pqf2xml_text(const char *pqf) { YAZ_PQF_Parser parser = yaz_pqf_create(); @@ -35,8 +34,10 @@ static void pqf2xml_text(const char *pqf) query->u.type_1 = rpn; odr_destroy(odr); -} +#if HAVE_XML2 + #endif +} int main (int argc, char **argv) {