diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-10-26 13:02:00 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-10-26 20:22:55 +0200 |
commit | 788d3335734b24f4f15045989d1ce75d18e98961 (patch) | |
tree | 1a56c8aeb4cfeea19216abe6eb59e7ffc2739627 /lib | |
parent | f0364f7e3191c930008de0736ae00ef28d42bd91 (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/timeval.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/timeval.h b/lib/timeval.h index 3821bfb73..fb3f680c4 100644 --- a/lib/timeval.h +++ b/lib/timeval.h @@ -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 { |