[x265] [PATCH] winxp: fix build error on WinXP and VS2008
Min Chen
chenm003 at 163.com
Mon Feb 2 07:31:08 CET 2015
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1422858660 -28800
# Node ID bdaf52ee5d698c71507f15feedb8bba5b249c80b
# Parent 6c5156500d6d4fa655acaf7a8b77f2ba3a0f794b
winxp: fix build error on WinXP and VS2008
---
source/common/winxp.h | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff -r 6c5156500d6d -r bdaf52ee5d69 source/common/winxp.h
--- a/source/common/winxp.h Fri Jan 30 11:54:22 2015 -0600
+++ b/source/common/winxp.h Mon Feb 02 14:31:00 2015 +0800
@@ -56,6 +56,17 @@
#define WakeAllConditionVariable x265::cond_broadcast
#define XP_CONDITION_VAR_FREE x265::cond_destroy
+__forceinline
+LONG
+InterlockedAdd(
+ __inout LONG volatile *Addend,
+ __in LONG Value
+ )
+
+{
+ return InterlockedExchangeAdd(Addend, Value) + Value;
+}
+
} // namespace x265
#else // if defined(_WIN32) && (_WIN32_WINNT < 0x0600)
More information about the x265-devel
mailing list