From: Tim Kientzle Date: Sat, 24 May 2025 02:58:02 +0000 (-0700) Subject: Merge pull request #2631 from stoeckmann/configure_windows X-Git-Tag: v3.8.1~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4937278516bd288a68365e6fb77a0c35a617840a;p=thirdparty%2Flibarchive.git Merge pull request #2631 from stoeckmann/configure_windows configure.ac: Improve Windows version detection (cherry picked from commit 0ed4435209b9b694cc190d937e4709a0609580e6) --- diff --git a/configure.ac b/configure.ac index 911dcf16b..575e573ee 100644 --- a/configure.ac +++ b/configure.ac @@ -258,7 +258,8 @@ AM_CONDITIONAL([STATIC_BSDCPIO], [ test "$static_bsdcpio" = yes ]) case $host in *mingw* | *cygwin* | *msys* ) AC_PREPROC_IFELSE([AC_LANG_PROGRAM( - [[#ifdef _WIN32_WINNT + [[#include + #ifdef _WIN32_WINNT # error _WIN32_WINNT already defined #endif ]],[[;]]) @@ -267,7 +268,8 @@ case $host in AC_DEFINE([NTDDI_VERSION], 0x05020000, [Define to '0x05020000' for Windows Server 2003 APIs.]) ]) AC_PREPROC_IFELSE([AC_LANG_PROGRAM( - [[#ifdef WINVER + [[#include + #ifdef WINVER # error WINVER already defined #endif ]],[[;]])