diff --git a/libavcodec/dxva2.h b/libavcodec/dxva2.h index 2639d89d90..be246d7198 100644 --- a/libavcodec/dxva2.h +++ b/libavcodec/dxva2.h @@ -29,11 +29,8 @@ * Public libavcodec DXVA2 header. */ -#if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0600 +#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600 #undef _WIN32_WINNT -#endif - -#if !defined(_WIN32_WINNT) #define _WIN32_WINNT 0x0600 #endif