[x265] [PATCH 4 of 4] fix bug in WinXP mode

Min Chen chenm003 at 163.com
Thu Aug 22 09:18:33 CEST 2013


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1377155869 -28800
# Node ID 9515d38e44f4130d261e61c6f21567ba9d32a1e3
# Parent  08631e01e5c0ee7f05e81d2dff89bc59534cebed
fix bug in WinXP mode

diff -r 08631e01e5c0 -r 9515d38e44f4 source/CMakeLists.txt
--- a/source/CMakeLists.txt	Thu Aug 22 15:17:29 2013 +0800
+++ b/source/CMakeLists.txt	Thu Aug 22 15:17:49 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