Skip to content

Commit c545e84

Browse files
committed
Fix UWP compilation.
1 parent dd78a98 commit c545e84

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

globals.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ static xmlMutex xmlThrDefMutex;
7777

7878
#ifdef HAVE_WIN32_THREADS
7979
#if defined(LIBXML_STATIC) && !defined(LIBXML_STATIC_FOR_DLL)
80-
#define USE_WAIT_DTOR
80+
#if !defined(WINAPI_FAMILY_PARTITION) || (!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
81+
#define USE_WAIT_DTOR
82+
#endif
8183
#else
8284
#define USE_DLL_MAIN
8385
#endif

xpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8203,7 +8203,7 @@ void
82038203
xmlXPathLangFunction(xmlXPathParserContextPtr ctxt, int nargs) {
82048204
xmlXPathObjectPtr val;
82058205
xmlNodePtr cur;
8206-
xmlChar *theLang;
8206+
xmlChar *theLang = NULL;
82078207
const xmlChar *lang;
82088208
int ret = 0;
82098209
int i;

0 commit comments

Comments
 (0)