]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
msvc: drop checks for `_MSC_VER >= 900`
authorViktor Szakats <commit@vsz.me>
Thu, 9 Jan 2025 11:00:56 +0000 (12:00 +0100)
committerViktor Szakats <commit@vsz.me>
Thu, 9 Jan 2025 13:52:45 +0000 (14:52 +0100)
It's Visual C++, 32-bit, version 2.0, released in 1993. Used to verify
if `_INTEGRAL_MAX_BITS` is available.

After this patch we assume `_INTEGRAL_MAX_BITS` is always available in
MSVC.

Closes #15952

include/curl/system.h
lib/config-win32.h
lib/config-win32ce.h
lib/mprintf.c

index d7203f23a5632a9b828e437814e31a9ce83c62c2..682561a7e8fd333646113f69ca3ac1fa0855db69 100644 (file)
 #    define CURL_FORMAT_CURL_OFF_TU    PRIu64
 #    define CURL_SUFFIX_CURL_OFF_T     i64
 #    define CURL_SUFFIX_CURL_OFF_TU    ui64
-#  elif (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
+#  elif (_INTEGRAL_MAX_BITS >= 64)
 #    define CURL_TYPEOF_CURL_OFF_T     __int64
 #    define CURL_FORMAT_CURL_OFF_T     "I64d"
 #    define CURL_FORMAT_CURL_OFF_TU    "I64u"
index 1f280a96c6c2f4193985234deab9b4572b5cf839..4b599e5c8f04254e42104ca4a160a69921c67ad8 100644 (file)
@@ -394,7 +394,7 @@ Vista
 /* ---------------------------------------------------------------- */
 
 #if defined(_MSC_VER) && !defined(_WIN32_WCE)
-#  if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
+#  if (_INTEGRAL_MAX_BITS >= 64)
 #    define USE_WIN32_LARGE_FILES
 #  else
 #    define USE_WIN32_SMALL_FILES
index 1e6fce642ab3ce0b75965b163fb5f7ba22fb0ae9..cd42c372884f2974b2c44c31c8df4ead2da03590 100644 (file)
 /* ---------------------------------------------------------------- */
 
 #if defined(_MSC_VER) && !defined(_WIN32_WCE)
-#  if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
+#  if (_INTEGRAL_MAX_BITS >= 64)
 #    define USE_WIN32_LARGE_FILES
 #  else
 #    define USE_WIN32_SMALL_FILES
index e04a0e99e40cab0b67fe1a8e912eff98c7f41a19..396c78625ca325948f346ec1ca9073c1aee6dacd 100644 (file)
 #ifdef HAVE_LONGLONG
 #  define LONG_LONG_TYPE long long
 #  define HAVE_LONG_LONG_TYPE
+#elif defined(_MSC_VER) && (_INTEGRAL_MAX_BITS >= 64)
+#  define LONG_LONG_TYPE __int64
+#  define HAVE_LONG_LONG_TYPE
 #else
-#  if defined(_MSC_VER) && (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
-#    define LONG_LONG_TYPE __int64
-#    define HAVE_LONG_LONG_TYPE
-#  else
-#    undef LONG_LONG_TYPE
-#    undef HAVE_LONG_LONG_TYPE
-#  endif
+#  undef LONG_LONG_TYPE
+#  undef HAVE_LONG_LONG_TYPE
 #endif
 
 /*