summaryrefslogtreecommitdiff
path: root/libavcodec/dxva2.h
diff options
context:
space:
mode:
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 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 <stdint.h>
#include <d3d9.h>
#include <dxva2api.h>