[vlc-devel] [PATCH 2/4] contrib: libxml2: force _UNICODE for Windows Store builds

Steve Lhomme robux4 at ycbcr.xyz
Mon Mar 18 15:37:39 CET 2019


as done in the MSVC build files.

It should only affect tchar based API calls which don't seem to be used, but
since they do it.
---
 contrib/src/libxml2/rules.mak | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/contrib/src/libxml2/rules.mak b/contrib/src/libxml2/rules.mak
index 7552260bb0..7e387003d7 100644
--- a/contrib/src/libxml2/rules.mak
+++ b/contrib/src/libxml2/rules.mak
@@ -36,6 +36,9 @@ XMLCONF+= --without-debug
 endif
 
 XML_CFLAGS = -DLIBXML_STATIC
+ifdef HAVE_WINSTORE
+XML_CFLAGS += -D_UNICODE
+endif
 
 libxml2: libxml2-$(LIBXML2_VERSION).tar.gz .sum-libxml2
 	$(UNPACK)
-- 
2.17.1



More information about the vlc-devel mailing list