From b8962d64cc71af241601bcab5c3fcdc5735ef4ae Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Fri, 15 Aug 2014 21:01:15 +0200 Subject: dxva2: Clean up definition of _WIN32_WINNT Only set a value if _WIN32_WINNT is undefined or smaller than 0x0600. This is cleaner than unconditional definition and avoids a number of redefinition warnings. Also only define a value in one of the two dxva2 headers. --- libavcodec/dxva2.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavcodec/dxva2.h') diff --git a/libavcodec/dxva2.h b/libavcodec/dxva2.h index 78939be961..d9017c6b8d 100644 --- a/libavcodec/dxva2.h +++ b/libavcodec/dxva2.h @@ -29,7 +29,11 @@ * Public libavcodec DXVA2 header. */ +#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600 +#undef _WIN32_WINNT #define _WIN32_WINNT 0x0600 +#endif + #include #include #include -- cgit v1.2.3