[Ttssh2-commit] [7494] build時に指定できる_WIN32_WINNTを調べた

scmno****@osdn***** scmno****@osdn*****
2019年 3月 18日 (月) 22:57:38 JST


Revision: 7494
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7494
Author:   zmatsuo
Date:     2019-03-18 22:57:37 +0900 (Mon, 18 Mar 2019)
Log Message:
-----------
build時に指定できる_WIN32_WINNTを調べた
https://sourceforge.net/p/mingw/mailman/message/8593552/

Modified Paths:
--------------
    branches/cmake/CMakeLists.txt

-------------- next part --------------
Modified: branches/cmake/CMakeLists.txt
===================================================================
--- branches/cmake/CMakeLists.txt	2019-03-18 13:57:27 UTC (rev 7493)
+++ branches/cmake/CMakeLists.txt	2019-03-18 13:57:37 UTC (rev 7494)
@@ -13,8 +13,11 @@
 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
 
-# _WIN32_WINNT_WIN10 0x0a00
-set(_WIN32_WINNT "0x0a00")
+set(_WIN32_WINNT "0x0a00")      # _WIN32_WINNT_WIN10    Windows 10
+#set(_WIN32_WINNT "0x0501")     # _WIN32_WINNT_WINXP    Windows XP ↑build ok
+#set(_WIN32_WINNT "0x0500")     # _WIN32_WINNT_WIN2K    Windows 2000 ↓build ng
+#set(_WIN32_WINNT "0x0400")     # _WIN32_WINNT_NT4      Windows NT 4.0(95)
+message("_WIN32_WINNT=${_WIN32_WINNT}")
 if(MSVC)
   # https://www.leeholmes.com/blog/2017/02/27/differences-between-visual-studio-2012-2013-and-2015/
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D_WIN32_WINNT=${_WIN32_WINNT}")


Ttssh2-commit メーリングリストの案内