Revision: 7568 https://osdn.net/projects/ttssh2/scm/svn/commits/7568 Author: zmatsuo Date: 2019-04-10 01:24:31 +0900 (Wed, 10 Apr 2019) Log Message: ----------- VS2005のとき、_WIN32_WINNTの値をチェックするようにした Modified Paths: -------------- trunk/CMakeLists.txt trunk/teraterm/common/teraterm_conf.h trunk/version_info.h.in -------------- next part -------------- Modified: trunk/CMakeLists.txt =================================================================== --- trunk/CMakeLists.txt 2019-04-09 16:24:19 UTC (rev 7567) +++ trunk/CMakeLists.txt 2019-04-09 16:24:31 UTC (rev 7568) @@ -17,6 +17,9 @@ set(_WIN32_WINNT "0x0a00") if(MSVC) # https://www.leeholmes.com/blog/2017/02/27/differences-between-visual-studio-2012-2013-and-2015/ + if(${CMAKE_GENERATOR} MATCHES "Visual Studio 8 2005") + set(_WIN32_WINNT "0x0501") + endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D_WIN32_WINNT=${_WIN32_WINNT}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /D_WIN32_WINNT=${_WIN32_WINNT}") string(REPLACE "/MD" "/MT" CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG}) Modified: trunk/teraterm/common/teraterm_conf.h =================================================================== --- trunk/teraterm/common/teraterm_conf.h 2019-04-09 16:24:19 UTC (rev 7567) +++ trunk/teraterm/common/teraterm_conf.h 2019-04-09 16:24:31 UTC (rev 7568) @@ -48,6 +48,16 @@ #endif /* + * VS2005\x82\xF0\x8Eg\x82\xC1\x82Ă\xA2\x82\xE9\x8Fꍇ\x81A + * _WIN32_WINNT \x82\xAA 0x0501 \x82łȂ\xAF\x82\xEA\x82G\x83\x89\x81[\x82\xF0\x8Fo\x82\xB7 + */ +#if _MSC_VER == 1400 // VS2005 +#if _WIN32_WINNT != 0x0501 +#error check _WIN32_WINNT +#endif +#endif + +/* * _WIN32_WINNT\x82\xA9\x82玟\x82\xCCdefine\x82\xF0\x93K\x90ɐݒ肷\x82\xE9 * NTDDI_VERSION * WINVER Modified: trunk/version_info.h.in =================================================================== --- trunk/version_info.h.in 2019-04-09 16:24:19 UTC (rev 7567) +++ trunk/version_info.h.in 2019-04-09 16:24:31 UTC (rev 7568) @@ -6,6 +6,8 @@ // infos when generated #cmakedefine MSVC #cmakedefine MINGW +// _WIN32_WINNT +// @_WIN32_WINNT@ // CMAKE_GENERATOR // @CMAKE_GENERATOR@ // CMAKE_GENERATOR_TOOLSET (VS 2010 and above)