Skip to content
Snippets Groups Projects
Commit daa0ff26 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

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.

(cherry picked from commit 8a793922) (rebased)
rebased:
- the code around is slightly different
parent 7b58309a
No related branches found
No related tags found
1 merge request!6643[3.0] contrib: fix CMake usage of forced static libraries
......@@ -164,6 +164,11 @@ EXTRA_LDFLAGS += -m32
endif
endif
ifdef HAVE_WINSTORE
EXTRA_CFLAGS += -DWINSTORECOMPAT
EXTRA_LDFLAGS += -lwinstorecompat
endif
ifneq ($(findstring clang, $(shell $(CC) --version)),)
HAVE_CLANG := 1
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment