GNOME Bugzilla – Bug 690878
Code fixes in catalog.c
Last modified: 2013-03-27 01:58:36 UTC
Around line 3123, change uri = xmlCanonicPath(buf); if (uri != NULL) { strncpy(XML_XML_DEFAULT_CATALOG, uri, 255); to: uri = xmlCanonicPath((const xmlChar*)buf); if (uri != NULL) { strncpy(XML_XML_DEFAULT_CATALOG, (const char*)uri, 255);
Around line 992, change content = xmlMallocAtomic(size + 10); to content = (xmlChar*)xmlMallocAtomic(size + 10); Around line 3247, change iLen = strlen(path); to iLen = strlen((const char*)path);
Around line 1550, change cur = xmlHashLookup(xmlCatalogXMLFiles, catal->URL); to cur = (xmlCatalogEntryPtr)xmlHashLookup(xmlCatalogXMLFiles, catal->URL);
At line 87, change void* __stdcall GetModuleHandleA(const char*); to #if !defined(_WINDOWS_) void* __stdcall GetModuleHandleA(const char*); #endif duplicate deceleration results if <Windows.h> is included before <libxml/catalog.h>
(In reply to comment #3) > At line 87, change > > void* __stdcall GetModuleHandleA(const char*); > > to > > #if !defined(_WINDOWS_) > void* __stdcall GetModuleHandleA(const char*); > #endif > > duplicate deceleration results if <Windows.h> is included before > <libxml/catalog.h> #if !defined(_WINDOWS_) void* __stdcall GetModuleHandleA(const char*); unsigned long __stdcall GetModuleFileNameA(void*, char*, unsigned long); #endif
Patches are highly welcome, see https://live.gnome.org/Git/Developers
I don't have Git
Created attachment 238514 [details] [review] Fixes from this ticket as patch Compiled without warnings on linux, not checked under windows
Okay, pushed to git, thanks ! https://git.gnome.org/browse/libxml2/commit/?id=e1631e1cfcdf4bd7e7ec4999ec5aae9675390797 Daniel