Skip to content

Commit 5a949ca

Browse files
authored
CMake: Set _WIN32_WINNT=0x0601 (#900)
1 parent 7000a65 commit 5a949ca

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ if(QJS_BUILD_LIBC)
211211
endif()
212212
list(APPEND qjs_defines _GNU_SOURCE)
213213
if(WIN32)
214-
list(APPEND qjs_defines WIN32_LEAN_AND_MEAN _WIN32_WINNT=0x0602)
214+
# NB: Windows 7 is EOL and we are only supporting in so far as it doesn't interfere with progress.
215+
list(APPEND qjs_defines WIN32_LEAN_AND_MEAN _WIN32_WINNT=0x0601)
215216
endif()
216217
list(APPEND qjs_libs ${CMAKE_DL_LIBS})
217218
find_package(Threads)

docs/docs/supported_platforms.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ sidebar_position: 8
88
|---|---|---|
99
| GNU/Linux | * | glibc and musl are supported |
1010
| macOS | macOS >= 11 | Currently supported macOS releases |
11-
| Windows | >= Windows 8 | VS >= 2022 and Clang are supported |
11+
| Windows | >= Windows 7* | VS >= 2022 and Clang are supported |
1212
| FreeBSD | * | Limited testing |
1313
| OpenBSD | * | Limited testing |
1414
| NetBSD | * | Limited testing |
1515
| Android | NDK >= 26.0.10792818 | Limited testing |
1616
| iOS | * | Limited testing |
1717
| MinGW | MinGW-w64 | |
1818
| Other | N/A | Missing? Open a PR! |
19+
20+
- `*`: Windows 7 is EOL and only supported in this project as long as it doesn't interfere with its progress.

0 commit comments

Comments
 (0)