[x265] [PATCH 1 of 3] fix build fault on WinXP

Min Chen chenm003 at 163.com
Fri Apr 24 15:46:15 CEST 2015


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1429883155 -28800
# Node ID f942732ccf599452c00ce28e82b63e8d2d6e1b77
# Parent  a35fafa25df2c82fec9e44d95f0a29ba835b48ea
fix build fault on WinXP
---
 source/CMakeLists.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff -r a35fafa25df2 -r f942732ccf59 source/CMakeLists.txt
--- a/source/CMakeLists.txt	Thu Apr 23 12:32:49 2015 -0500
+++ b/source/CMakeLists.txt	Fri Apr 24 21:45:55 2015 +0800
@@ -305,7 +305,7 @@
     if(WINXP_SUPPORT)
         # force use of workarounds for CONDITION_VARIABLE and atomic
         # intrinsics introduced after XP
-        add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_WINXP)
+        add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_WINXP -D_WIN32_WINNT_WIN7=0x0601)
     else(WINXP_SUPPORT)
         # default to targeting Windows 7 for the NUMA APIs
         add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_WIN7)



More information about the x265-devel mailing list