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 @@ ...@@ -2,22 +2,8 @@
#ifndef LIBXML2_PORT_H #ifndef LIBXML2_PORT_H
#define 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) #define GetVersionEx(osvi) (((osvi)->dwPlatformId = 0) != 0)
#define getcwd(a, b) NULL
#if 0 #define getenv(x) NULL
#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
#endif /* LIBXML2_PORT_H */ #endif /* LIBXML2_PORT_H */
...@@ -291,7 +291,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version); ...@@ -291,7 +291,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
* *
* Whether Debugging module is configured in * Whether Debugging module is configured in
*/ */
#if 1 #if 0
#define LIBXML_DEBUG_ENABLED #define LIBXML_DEBUG_ENABLED
#endif #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