Commit ed38e4d3 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Some changes to libxml2 compilation to fix some issues with the Windows Store...

Some changes to libxml2 compilation to fix some issues with the Windows Store App Certification Kit.
parent 3eff514a
......@@ -2,22 +2,8 @@
#ifndef LIBXML2_PORT_H
#define LIBXML2_PORT_H
#if 0
#define CreateMutex(a, b, c) CreateMutexExW(a, c, ((b) ? CREATE_MUTEX_INITIAL_OWNER : 0), 0)
#endif
#define GetVersionEx(osvi) (((osvi)->dwPlatformId = 0) != 0)
#if 0
#define InitializeCriticalSection(cs) InitializeCriticalSectionEx(cs, 0, 0)
#define WaitForSingleObject(hHandle, dwMilliseconds) WaitForSingleObjectEx(hHandle, dwMilliseconds, 0)
#define Sleep(ms) { \
HANDLE sleepEvent = CreateEventEx(NULL, NULL, CREATE_EVENT_MANUAL_RESET, EVENT_ALL_ACCESS); \
if (!sleepEvent) return; \
WaitForSingleObjectEx(sleepEvent, ms, FALSE); \
}
#endif
#define getcwd(a, b) NULL
#define getenv(x) NULL
#endif /* LIBXML2_PORT_H */
......@@ -291,7 +291,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
*
* Whether Debugging module is configured in
*/
#if 1
#if 0
#define LIBXML_DEBUG_ENABLED
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment