From 9f3e554c8d28591c66568fb9f3c76949328020f4 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 24 Jul 2025 13:05:16 +0200 Subject: [PATCH] curl_setup.h: check mingw-w64 availability and version --- lib/curl_setup.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/curl_setup.h b/lib/curl_setup.h index fc5359d1b4..36da5c6cbf 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -75,6 +75,11 @@ #endif #endif +#if defined(__MINGW32__) && \ + (!defined(__MINGW64_VERSION_MAJOR) || (__MINGW64_VERSION_MAJOR < 3)) +#error "Building curl requires mingw-w64 3.0 or later" +#endif + /* Visual Studio 2008 is the minimum Visual Studio version we support. Workarounds for older versions of Visual Studio have been removed. */ #if defined(_MSC_VER) && (_MSC_VER < 1500)