Commit 89946c84 authored by James Almer's avatar James Almer Committed by Michael Niedermayer

dxva2: Prevent redefinition of _WIN32_WINNT

Don't redefine _WIN32_WINNT when targeting Win7/8
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 47335126
...@@ -23,7 +23,14 @@ ...@@ -23,7 +23,14 @@
#ifndef AVCODEC_DXVA_INTERNAL_H #ifndef AVCODEC_DXVA_INTERNAL_H
#define AVCODEC_DXVA_INTERNAL_H #define AVCODEC_DXVA_INTERNAL_H
#if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0600
#undef _WIN32_WINNT
#endif
#if !defined(_WIN32_WINNT)
#define _WIN32_WINNT 0x0600 #define _WIN32_WINNT 0x0600
#endif
#define COBJMACROS #define COBJMACROS
#include "config.h" #include "config.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment