[x265] [PATCH] fix build error on VS2008 + WinXP
Steve Borho
steve at borho.org
Sat Apr 12 04:51:27 CEST 2014
On Fri, Apr 11, 2014 at 5:53 PM, Min Chen <chenm003 at 163.com> wrote:
> # HG changeset patch
> # User Min Chen <chenm003 at 163.com>
> # Date 1397256800 -28800
> # Node ID 065e6599bab74c34e26ad67a9b9f6ed41516856d
> # Parent 850ebca2f7c88536753941736e447de475fe746f
> fix build error on VS2008 + WinXP
modified version queued
>
> diff -r 850ebca2f7c8 -r 065e6599bab7 source/common/winxp.h
> --- a/source/common/winxp.h Fri Apr 11 14:52:11 2014 -0500
> +++ b/source/common/winxp.h Sat Apr 12 06:53:20 2014 +0800
> @@ -24,8 +24,16 @@
> #ifndef X265_WINXP_H
> #define X265_WINXP_H
>
> +#ifndef _WIN32_WINNT_VISTA
> +#define _WIN32_WINNT_VISTA 0x06000000
> +#endif
> +
> #if defined(_WIN32) && (_WIN32_WINNT < _WIN32_WINNT_VISTA)
>
> +#ifdef _MSC_VER
> +#include <intrin.h> // _InterlockedCompareExchange64
> +#endif
> +
> namespace x265
> {
>
> @@ -83,6 +91,6 @@
>
> #define XP_CONDITION_VAR_FREE(x)
>
> -#endif // _WIN32_WINNT <= _WIN32_WINNT_WINXP
> +#endif // _WIN32_WINNT < _WIN32_WINNT_VISTA
>
> #endif // ifndef X265_WINXP_H
>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
--
Steve Borho
More information about the x265-devel
mailing list