1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

dxva2: Prevent redefinition of _WIN32_WINNT

Don't redefine _WIN32_WINNT when targeting Win7/8

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
James Almer 2013-02-08 01:17:06 -03:00 committed by Michael Niedermayer
parent 47335126c0
commit 89946c8403

View File

@ -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"