From be1157fee3451c37508c9ec3b4b4b8603a646c0b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 27 Jan 2006 19:04:15 +0000 Subject: [PATCH] Make sure this compiles even without Libxml2. --- test/tstxmlquery.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) { -- 1.7.10.4