X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Flibxml2_error.c;h=00f588140000fe06eae75f6d89f6b71eed22f144;hp=3241a63956ef192daa008372b807f1f84b431b1d;hb=fc6d778b923000b5c6ad8e108b0b184178a9d33f;hpb=262ce1bfa2a3bc7045217e59281b4b59938a7da8 diff --git a/src/libxml2_error.c b/src/libxml2_error.c index 3241a63..00f5881 100644 --- a/src/libxml2_error.c +++ b/src/libxml2_error.c @@ -2,7 +2,7 @@ * Copyright (C) 2006, Index Data ApS * See the file LICENSE for details. * - * $Id: libxml2_error.c,v 1.1 2006-05-07 17:45:41 adam Exp $ + * $Id: libxml2_error.c,v 1.2 2006-07-06 10:17:53 adam Exp $ */ /** * \file libxml2_error.c @@ -14,11 +14,11 @@ #include #include -#if HAVE_XML2 +#if YAZ_HAVE_XML2 #include #endif -#if HAVE_XSLT +#if YAZ_HAVE_XSLT #include #endif @@ -44,10 +44,10 @@ static void proxy_xml_error_handler(void *ctx, const char *fmt, ...) int libxml2_error_to_yazlog(int level, const char *lead_msg) { libxml2_error_level = level; -#if HAVE_XSLT +#if YAZ_HAVE_XSLT xsltSetGenericErrorFunc((void *) "XSLT", proxy_xml_error_handler); #endif -#if HAVE_XML2 +#if YAZ_HAVE_XML2 xmlSetGenericErrorFunc((void *) "XML", proxy_xml_error_handler); return 0; #else