[x265] [PATCH] fix bug in WinXP mode

Min Chen chenm003 at 163.com
Wed Aug 21 13:48:57 CEST 2013


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1377085227 -28800
# Node ID d16cac7dea7e9bc74f1afc7d1d0e53ef675f3eb7
# Parent  c0011df519ffe896e6ca8a5332c462d0fdac129f
fix bug in WinXP mode

diff -r c0011df519ff -r d16cac7dea7e source/CMakeLists.txt
--- a/source/CMakeLists.txt	Wed Aug 21 14:29:33 2013 +0800
+++ b/source/CMakeLists.txt	Wed Aug 21 19:40:27 2013 +0800
@@ -84,16 +84,6 @@
     endif(UNIX)
 endif(ENABLE_PPA)
 
-include_directories(. Lib common encoder)
-add_subdirectory(common)
-add_subdirectory(encoder)
-
-# Test applications
-option(ENABLE_TESTS "Enable Unit Tests" OFF)
-if(ENABLE_TESTS)
-    add_subdirectory(test)
-endif(ENABLE_TESTS)
-
 if (WIN32)
     # Visual leak detector
     find_package(VLD)
@@ -106,10 +96,20 @@
     option(WINXP_SUPPORT "Make binaries compatible with Windows XP" OFF)
     if(WINXP_SUPPORT)
         # force workarounds for atomic intrinsics introduced after XP
-        add_definitions(-D_WIN32_WINNT=0x501)
+        add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_WINXP)
     endif(WINXP_SUPPORT)
 endif()
 
+include_directories(. Lib common encoder)
+add_subdirectory(common)
+add_subdirectory(encoder)
+
+# Test applications
+option(ENABLE_TESTS "Enable Unit Tests" OFF)
+if(ENABLE_TESTS)
+    add_subdirectory(test)
+endif(ENABLE_TESTS)
+
 # Main CLI application
 option(ENABLE_CLI "Build standalone CLI application" ON)
 if(ENABLE_CLI)



More information about the x265-devel mailing list