configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) New commits: commit 8f7d4f1da306fc7e104050c96ae1538c3f04c52f Author: Hossein <hoss...@libreoffice.org> AuthorDate: Thu Feb 22 13:20:09 2024 +0000 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Tue Feb 27 10:49:29 2024 +0100
Check Windows SDK version Because of a regression in Windows SDK version 10.0.19xxxx which is now fixed in 10.0.20348, it is good to check that the required SDK version is installed: More information https://developercommunity.visualstudio.com/t/std:c17-generates-warning-compiling-Win/1249671 It is important to know that both Windows 10 and Windows 11 SDK should work. Change-Id: Ia42843cac4f94c4db9ef429714f1b9d46ba3fd09 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163770 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/configure.ac b/configure.ac index 276657f3cae1..6c6509ad3fd8 100644 --- a/configure.ac +++ b/configure.ac @@ -6829,6 +6829,15 @@ if test "$_os" = "WINNT"; then fi WINDOWS_SDK_LIB_SUBDIR=$winsdklibsubdir + # The variable also contains the Windows SDK version + echo $WINDOWS_SDK_LIB_SUBDIR + IFS='.' read -r SDK_v1 SDK_v2 SDK_v3 SDK_v4 <<< "$WINDOWS_SDK_LIB_SUBDIR" + # Assuming maximum of 5 digits for each part and ignoring last part + SDK_NORMALIZED_VER=$((SDK_v1 * 10000000000 + SDK_v2 * 100000 + SDK_v3)) + # 10.0.20348.0 is the minumum required version + if test "$SDK_NORMALIZED_VER" -lt 100000020348; then + AC_MSG_ERROR([You need Windows SDK greater than or equal 10.0.20348.0]) + fi fi if test -n "$WINDOWS_SDK_HOME"; then