diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-26 22:41:18 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-26 22:41:18 +0200 |
commit | 508c815d4db0a795444476a9e175b2e6d09bb35c (patch) | |
tree | 3152793d85c5a6c4ad684e072eb541f84172a023 /libavcodec/dxva2_internal.h | |
parent | dc07e576ce72814c79c4e5a9ea2805291296a3f5 (diff) | |
parent | 9b4b96c0dee90d260891ec765b28f6ca15594340 (diff) | |
download | ffmpeg-508c815d4db0a795444476a9e175b2e6d09bb35c.tar.gz |
Merge commit '9b4b96c0dee90d260891ec765b28f6ca15594340'
* commit '9b4b96c0dee90d260891ec765b28f6ca15594340':
force WINAPI_FAMILY to WINAPI_FAMILY_DESKTOP_APP to be able to use dxva.h
Conflicts:
libavcodec/dxva2_internal.h
See: c5327df838396e7c43a56bdd141c0f01ba3edc94
Merged-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/dxva2_internal.h')
-rw-r--r-- | libavcodec/dxva2_internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/dxva2_internal.h b/libavcodec/dxva2_internal.h index d5cc01ef4f..6c9d0bb03f 100644 --- a/libavcodec/dxva2_internal.h +++ b/libavcodec/dxva2_internal.h @@ -38,9 +38,11 @@ #endif #if HAVE_DXVA_H -/* dxva.h defines nothing otherwise but it works */ +/* When targeting WINAPI_FAMILY_PHONE_APP or WINAPI_FAMILY_APP, dxva.h + * defines nothing. Force the struct definitions to be visible. */ #undef WINAPI_FAMILY #define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP +#undef _CRT_BUILD_DESKTOP_APP #define _CRT_BUILD_DESKTOP_APP 0 #include <dxva.h> #endif |