d3d11va: Check WINAPI_FAMILY instead of HAVE_LOADLIBRARY
authorMartin Storsjö <martin@martin.st>
Tue, 4 Jul 2017 17:03:00 +0000 (20:03 +0300)
committerwm4 <nfxjfg@googlemail.com>
Thu, 10 Aug 2017 09:58:25 +0000 (11:58 +0200)
commit9042402ec78ad050eb7ad129610450ef90371df4
tree7497236ff765a77c692dca0f98d7d63edf43cebe
parentc100330a8ff4deef2a4994a9e55d387a00ea3cff
d3d11va: Check WINAPI_FAMILY instead of HAVE_LOADLIBRARY

If using the winstore compat library, a fallback LoadLibrary
function does exist, that only calls LoadPackagedLibrary though
(which doesn't work for dynamically loading d3d11 DLLs).

Therefore explicitly check the targeted API family instead.

Make this check a reusable HAVE_* component which other parts
of the libraries can check when necessary as well.

Signed-off-by: Martin Storsjö <martin@martin.st>
Merged from Libav commit 4d330da006fe48178.
configure
libavutil/hwcontext_d3d11va.c