]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_cb_prg: drop duplicate preprocessor logic
authorViktor Szakats <commit@vsz.me>
Thu, 5 Feb 2026 21:23:32 +0000 (22:23 +0100)
committerViktor Szakats <commit@vsz.me>
Thu, 5 Feb 2026 22:46:49 +0000 (23:46 +0100)
In favor of the copy in `curl_setup.h`.

Closes #20531

src/tool_cb_prg.c

index 375daad9fa99f8602ed1ad739f2bb86ae43fba43..2b9e6d63112b864e7ada0c956dd664e98c16116f 100644 (file)
@@ -107,13 +107,6 @@ static void fly(struct ProgressData *bar, bool moved)
 ** callback for CURLOPT_XFERINFOFUNCTION
 */
 
-#if (SIZEOF_CURL_OFF_T < 8)
-#error "too small curl_off_t"
-#else
-   /* assume SIZEOF_CURL_OFF_T == 8 */
-#  define CURL_OFF_T_MAX 0x7FFFFFFFFFFFFFFF
-#endif
-
 static void update_width(struct ProgressData *bar)
 {
   int cols = get_terminal_columns();