This is an automated email from the ASF dual-hosted git repository.
rainerjung pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
The following commit(s) were added to refs/heads/main by this push:
new 898edbb13 Make Windows 10 / 11 the default target version for Windows
builds.
898edbb13 is described below
commit 898edbb13621e299f3935c159fe31c62efddede7
Author: Rainer Jung <[email protected]>
AuthorDate: Mon Jun 22 22:37:24 2026 +0200
Make Windows 10 / 11 the default target version for Windows builds.
---
native/NMAKEmakefile.inc | 17 +++++++----------
xdocs/miscellaneous/changelog.xml | 3 +++
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/native/NMAKEmakefile.inc b/native/NMAKEmakefile.inc
index bd80b4c13..e29c9a259 100644
--- a/native/NMAKEmakefile.inc
+++ b/native/NMAKEmakefile.inc
@@ -29,15 +29,12 @@
# PROCESSOR_ARCHITECTURE environment variable
# or to the X64 if not specified.
# WINVER Compile for specified Windows version
-# WIN10 for Windows 10 and up
-# WIN81 for Windows 8.1 and up
-# WIN8 for Windows 8 and up
-# WIN7 for Windows 7 and up (default)
+# WIN10 for Windows 10 and up (default)
+# Windows 11 uses the same WIN10 WINVER.
# Deprecated targets (may not even compile):
-# VISTA for Windows Vista / Server 2008 and up
-# WIN2003 for Windows 2003 and up
-# WINXP for Windows XP and up
-# WIN2K for Windows 2000 and up
+# WIN81 for Windows 8.1 and up
+# WIN8 for Windows 8 and up
+# WIN7 for Windows 7 and up
# BUILD Build version
# RETAIL or RELEASE (default)
# DEBUG
@@ -141,7 +138,7 @@ TARGET=EXE
!ENDIF
!IF !DEFINED(WINVER) || "$(WINVER)" == ""
-WINVER=WIN7
+WINVER=WIN10
!ENDIF
@@ -154,7 +151,7 @@ NMAKE_WINVER = 0x0603
!ELSEIF "$(WINVER)" == "WIN10"
NMAKE_WINVER = 0x0A00
!ELSE
-!ERROR Must specify WINVER environment variable (WIN7, WIN8, WIN81, WIN10)
+!ERROR Must specify WINVER environment variable (WIN10, WIN7, WIN8, WIN81)
!ENDIF
NMAKE_WINNT = -DWINNT -D_WINNT -D_WIN32_WINNT=$(NMAKE_WINVER)
-DWINVER=$(NMAKE_WINVER)
diff --git a/xdocs/miscellaneous/changelog.xml
b/xdocs/miscellaneous/changelog.xml
index fd7452eb6..a042749e1 100644
--- a/xdocs/miscellaneous/changelog.xml
+++ b/xdocs/miscellaneous/changelog.xml
@@ -44,6 +44,9 @@
<update>
Make x64 the default architecture for Windows build. (rjung)
</update>
+ <update>
+ Make Windows 10 / 11 the default target version for Windows builds.
(rjung)
+ </update>
</changelog>
</section>
<section name="2.0.15" rtext="2026-06-15">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]