X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fxmlerror.c;h=ca09633294ee934feff67a888b7000c5e15a7c99;hp=26b5840231aa9ebfc6f14bacc1d8ea404ef1d2e1;hb=48b7a077523d1a86c16c9f536c56d6439fe90f42;hpb=d68f051b434a3a6171e56f12c798fd499e9abbbb diff --git a/src/xmlerror.c b/src/xmlerror.c index 26b5840..ca09633 100644 --- a/src/xmlerror.c +++ b/src/xmlerror.c @@ -1,11 +1,13 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ - /** \file \brief Log XML / XSLT Errors via yaz_log */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -42,11 +44,11 @@ static void xml_error_handler(void *ctx, const char *fmt, ...) void yaz_log_xml_errors(const char *prefix, int log_level) { xml_error_log_level = log_level; - + #if YAZ_HAVE_XML2 xmlSetGenericErrorFunc((void *) (prefix ? prefix : "XML"), xml_error_handler); -#if YAZ_HAVE_XSLT +#if YAZ_HAVE_XSLT xsltSetGenericErrorFunc((void *) (prefix ? prefix : "XSLT"), xml_error_handler); #endif