wfreerdp: minor 64-bit fixes

This commit is contained in:
Marc-André Moreau 2013-04-10 21:15:38 -04:00
parent f0a45f96f5
commit e7436a1a9d
2 changed files with 9 additions and 1 deletions

View File

@ -111,6 +111,10 @@ if(MSVC)
message(STATUS "Random freeing errors are a common sign of runtime issues") message(STATUS "Random freeing errors are a common sign of runtime issues")
endif() endif()
configure_msvc_runtime() configure_msvc_runtime()
if(NOT DEFINED CMAKE_SUPPRESS_REGENERATION)
set(CMAKE_SUPPRESS_REGENERATION ON)
endif()
endif() endif()
# Compiler-specific flags # Compiler-specific flags

View File

@ -236,7 +236,11 @@ LONG InterlockedCompareExchange(LONG volatile *Destination, LONG Exchange, LONG
#endif /* _WIN32 */ #endif /* _WIN32 */
#if (_WIN32 && (_WIN32_WINNT < 0x0502)) #if defined(_WIN64)
/* InterlockedCompareExchange64 already defined */
#elif (_WIN32 && (_WIN32_WINNT < 0x0502))
static volatile HANDLE mutex = NULL; static volatile HANDLE mutex = NULL;