1
0
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:
Daniel Stenberg 2017-10-26 13:02:00 +02:00
parent f0364f7e31
commit 788d333573
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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 {