# HG changeset patch
# User Min Chen <[email protected]>
# Date 1397256800 -28800
# Node ID 065e6599bab74c34e26ad67a9b9f6ed41516856d
# Parent 850ebca2f7c88536753941736e447de475fe746f
fix build error on VS2008 + WinXP
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
[email protected]
https://mailman.videolan.org/listinfo/x265-devel