[FFmpeg-devel] [PATCH] dxva2: Prevent redefinition of _WIN32_WINNT

Michael Niedermayer michaelni at gmx.at
Fri Feb 8 02:51:32 CET 2013


On Sun, Feb 03, 2013 at 06:18:41AM -0300, James Almer wrote:
> Don't redefine _WIN32_WINNT when targeting Win7/8.
> Also, undef it first to avoid a redefine warning.
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  libavcodec/dxva2_internal.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/libavcodec/dxva2_internal.h b/libavcodec/dxva2_internal.h
> index fcf45bc..90b5773 100644
> --- a/libavcodec/dxva2_internal.h
> +++ b/libavcodec/dxva2_internal.h
> @@ -23,7 +23,11 @@
>  #ifndef AVCODEC_DXVA_INTERNAL_H
>  #define AVCODEC_DXVA_INTERNAL_H
>  
> +#if (_WIN32_WINNT < 0x0600)

is _WIN32_WINNT guranteed to be defined here at all ?
if not then this needs an additional check

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130208/6023c3b6/attachment.asc>


More information about the ffmpeg-devel mailing list