# HG changeset patch # User Min Chen <chenm...@163.com> # Date 1397122677 -28800 # Node ID 88365d9b50a56ff468b54b4d42f18d5644a9f79f # Parent 83ccf2f1453ffd91c9fd8b84b72e3d3daacba6c6 fix build error on VS2008 + WinXP
diff -r 83ccf2f1453f -r 88365d9b50a5 source/common/winxp.cpp --- a/source/common/winxp.cpp Thu Apr 10 11:17:46 2014 +0530 +++ b/source/common/winxp.cpp Thu Apr 10 17:37:57 2014 +0800 @@ -23,7 +23,7 @@ #include "threading.h" -#if defined(_WIN32) && (_WIN32_WINNT <_WIN32_WINNT_VISTA) +#if defined(_WIN32) && (_WIN32_WINNT <= _WIN32_WINNT_WINXP) namespace x265 { diff -r 83ccf2f1453f -r 88365d9b50a5 source/common/winxp.h --- a/source/common/winxp.h Thu Apr 10 11:17:46 2014 +0530 +++ b/source/common/winxp.h Thu Apr 10 17:37:57 2014 +0800 @@ -24,7 +24,9 @@ #ifndef X265_WINXP_H #define X265_WINXP_H -#if defined(_WIN32) && (_WIN32_WINNT < _WIN32_WINNT_VISTA) +#if defined(_WIN32) && (_WIN32_WINNT <= _WIN32_WINNT_WINXP) + +#include <intrin.h> // _InterlockedCompareExchange64 namespace x265 { _______________________________________________ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel