From 73281a7addc59a652860d2c0fb0c0c156b52ef3b Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 6 May 2007 06:11:00 +0000 Subject: Log libxml2 version in lib_init(). svn path=/trunk/netsurf/; revision=3268 --- desktop/netsurf.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/desktop/netsurf.c b/desktop/netsurf.c index 0e93e036a..943ab4fcb 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -3,7 +3,7 @@ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2003 Phil Mellor - * Copyright 2004 James Bursa + * Copyright 2007 James Bursa * Copyright 2004 Andrew Timmins */ @@ -12,6 +12,9 @@ #include #include #include +#include +#include +#include #include "netsurf/utils/config.h" #include "netsurf/content/fetch.h" #include "netsurf/content/fetchcache.h" @@ -120,12 +123,16 @@ void netsurf_exit(void) /** * Initialises the libraries used in NetSurf. */ -static void lib_init(void) +void lib_init(void) { + LOG(("xmlParserVersion %s, LIBXML_VERSION_STRING %s", + xmlParserVersion, LIBXML_VERSION_STRING)); + /* Using encoding "X-SJIS" (unknown to libxmp2/iconv) instead as * "Shift-JIS" is rather popular. */ - if (xmlAddEncodingAlias(xmlGetCharEncodingName(XML_CHAR_ENCODING_SHIFT_JIS), "X-SJIS") != 0) + if (xmlAddEncodingAlias(xmlGetCharEncodingName( + XML_CHAR_ENCODING_SHIFT_JIS), "X-SJIS") != 0) die("Failed to add encoding alias"); } -- cgit v1.2.3