[libxml2] GetProcAddressA is available only on WinCE



commit dfc0aa0a6a17578a18e60e0b95e5722ef73c8e18
Author: Daniel Veillard <veillard redhat com>
Date:   Fri Aug 17 11:04:24 2012 +0800

    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 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/xmlmodule.c b/xmlmodule.c
index a59a1ec..fc84d96 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;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]