From dfc0aa0a6a17578a18e60e0b95e5722ef73c8e18 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 17 Aug 2012 11:04:24 +0800 Subject: GetProcAddressA is available only on WinCE As Roumen pointed out "After recent commits I count not link build for mingw* host as GetProcAddressA is missing." Looking around a bit it seems you are right: http://voidnish.wordpress.com/2005/06/14/getprocaddress-in-unicode-builds/ except it was introduced in Windows CE http://msdn.microsoft.com/en-us/library/ms885634.aspx --- xmlmodule.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xmlmodule.c') diff --git a/xmlmodule.c b/xmlmodule.c index a59a1ec9..fc84d96e 100644 --- a/xmlmodule.c +++ b/xmlmodule.c @@ -334,7 +334,14 @@ xmlModulePlatformClose(void *handle) static int xmlModulePlatformSymbol(void *handle, const char *name, void **symbol) { +#ifdef _WIN32_WCE + /* + * GetProcAddressA seems only available on WinCE + */ *symbol = GetProcAddressA(handle, name); +#else + *symbol = GetProcAddress(handle, name); +#endif return (NULL == *symbol) ? -1 : 0; } -- cgit v1.2.1