[vlc-devel] [PATCH 1/2] contrib: use winstorecompat when building for Windows Store
Steve Lhomme
robux4 at ycbcr.xyz
Mon Mar 18 15:39:12 CET 2019
Many contribs use forbidden APIs that are mapped to valid APIs in the
winstorecompat. We make sure they map to these calls with the define and
linking with the matching library.
---
contrib/src/main.mak | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 63ad43433b..6d37e66b7f 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -172,6 +172,11 @@ EXTRA_LDFLAGS += -m32
endif
endif
+ifdef HAVE_WINSTORE
+EXTRA_CFLAGS += -DWINSTORECOMPAT
+EXTRA_LDFLAGS += -lwinstorecompat
+endif
+
cppcheck = $(shell $(CC) $(CFLAGS) -E -dM - < /dev/null | grep -E $(1))
EXTRA_CFLAGS += -I$(PREFIX)/include
--
2.17.1
More information about the vlc-devel
mailing list