summaryrefslogtreecommitdiffstats
path: root/libavcodec/dxva2.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-08-15 21:01:15 +0200
committerDiego Biurrun <diego@biurrun.de>2014-09-01 12:23:59 +0200
commitb8962d64cc71af241601bcab5c3fcdc5735ef4ae (patch)
tree0164c880dee529756f8aebae857440a19d7a1515 /libavcodec/dxva2.h
parent4600a85eaa6182e5a27464f6b9cae5a9ddbf3098 (diff)
downloadffmpeg-streaming-b8962d64cc71af241601bcab5c3fcdc5735ef4ae.zip
ffmpeg-streaming-b8962d64cc71af241601bcab5c3fcdc5735ef4ae.tar.gz
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.
Diffstat (limited to 'libavcodec/dxva2.h')
-rw-r--r--libavcodec/dxva2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/dxva2.h b/libavcodec/dxva2.h
index 78939be..d9017c6 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 <stdint.h>
#include <d3d9.h>
#include <dxva2api.h>
OpenPOWER on IntegriCloud