diff options
author | Daniel Veillard <veillard@redhat.com> | 2012-08-17 11:04:24 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2012-08-17 11:04:24 +0800 |
commit | dfc0aa0a6a17578a18e60e0b95e5722ef73c8e18 (patch) | |
tree | 9689d3d0be0a2c37d6030af1911c809db9d0e004 /xmlmodule.c | |
parent | ec4fc529b33af1d14ff5675546afbb4da341e765 (diff) | |
download | libxml2-dfc0aa0a6a17578a18e60e0b95e5722ef73c8e18.tar.gz |
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
Diffstat (limited to 'xmlmodule.c')
-rw-r--r-- | xmlmodule.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; } |