mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 07:38:49 -05:00
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: b9d25f9a6b (co)
mmitcomment-25205058
Closes #2019
This commit is contained in:
parent
f0364f7e31
commit
788d333573
@ -27,7 +27,7 @@
|
|||||||
#if SIZEOF_TIME_T < 8
|
#if SIZEOF_TIME_T < 8
|
||||||
typedef int timediff_t;
|
typedef int timediff_t;
|
||||||
#else
|
#else
|
||||||
typedef ssize_t timediff_t;
|
typedef curl_off_t timediff_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct curltime {
|
struct curltime {
|
||||||
|
Loading…
Reference in New Issue
Block a user