[vlc-commits] contrib: use winstorecompat when building for Windows Store
    Steve Lhomme 
    git at videolan.org
       
    Tue Mar 19 11:50:49 CET 2019
    
    
  
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Mar 13 09:18:21 2019 +0100| [8a7939228feef676cfafd5cd45d2fea9c4bb941f] | committer: Steve Lhomme
contrib: use winstorecompat when building for Windows Store
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8a7939228feef676cfafd5cd45d2fea9c4bb941f
---
 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
    
    
More information about the vlc-commits
mailing list