curl_setup.h: check mingw-w64 availability and version

This commit is contained in:
Viktor Szakats 2025-07-24 13:05:16 +02:00
parent 05888ce157
commit 9f3e554c8d
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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)