Unverified Commit 788d3335 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

timeval: make timediff_t also work on 32bit windows

... by using curl_off_t for the typedef if time_t is larger than 4
bytes.

Reported-by: Gisle Vanem
Bug: https://github.com/curl/curl/commit/b9d25f9a6b3ca791385b80a6a3c3fa5ae113e1e0#co
mmitcomment-25205058
Closes #2019
parent f0364f7e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@
#if SIZEOF_TIME_T < 8
typedef int timediff_t;
#else
typedef ssize_t timediff_t;
typedef curl_off_t timediff_t;
#endif

struct curltime {