If _WIN32_WINNT is unset, we force it to a new enough value to make sure the necessary definitions are visible.
When targeting Windows Phone or Windows RT, _WIN32_WINNT should be at least 0x0602 - otherwise the windows headers themselves can cause errors (which technically are bugs in the headers). Raising this value here shouldn't hurt; the alternative would be to not touch it at all if WINAPI_FAMILY is set to phone/app, or to force setting it to 0x0602 in configure if unset (for phone/app). --- libavcodec/d3d11va.h | 2 +- libavcodec/dxva2.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/d3d11va.h b/libavcodec/d3d11va.h index 2163b35..5237119 100644 --- a/libavcodec/d3d11va.h +++ b/libavcodec/d3d11va.h @@ -32,7 +32,7 @@ #if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600 #undef _WIN32_WINNT -#define _WIN32_WINNT 0x0600 +#define _WIN32_WINNT 0x0602 #endif #include <stdint.h> diff --git a/libavcodec/dxva2.h b/libavcodec/dxva2.h index d9017c6..a40e2a5 100644 --- a/libavcodec/dxva2.h +++ b/libavcodec/dxva2.h @@ -31,7 +31,7 @@ #if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600 #undef _WIN32_WINNT -#define _WIN32_WINNT 0x0600 +#define _WIN32_WINNT 0x0602 #endif #include <stdint.h> -- 1.8.1.2 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
