Browse Source

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>
tags/n1.2
James Almer Michael Niedermayer 13 years ago
parent
commit
89946c8403
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      libavcodec/dxva2_internal.h

+ 7
- 0
libavcodec/dxva2_internal.h View File

@@ -23,7 +23,14 @@
#ifndef 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
#endif

#define COBJMACROS

#include "config.h"


Loading…
Cancel
Save