summaryrefslogtreecommitdiff
path: root/lib/timeval.h
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2020-08-29 12:54:30 +0200
committerMarc Hoersken <info@marc-hoersken.de>2022-04-17 13:11:27 +0200
commit68035af29d3d620c3adbe4502340d5b3127c8c53 (patch)
tree041032e94a6c29b1d4daf14f7ceb54484421b73b /lib/timeval.h
parent80eb71a3f5146f2ab5c5f8d8655d6861b5472668 (diff)
downloadcurl-68035af29d3d620c3adbe4502340d5b3127c8c53.tar.gz
timediff.[ch]: add curlx helper functions for timeval conversions
Also move timediff_t definitions from timeval.h to timediff.h and then make timeval.h include the new standalone-capable timediff.h. Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Supersedes #5888 Closes #8595
Diffstat (limited to 'lib/timeval.h')
-rw-r--r--lib/timeval.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/timeval.h b/lib/timeval.h
index 685e72961..7c60ce205 100644
--- a/lib/timeval.h
+++ b/lib/timeval.h
@@ -24,13 +24,7 @@
#include "curl_setup.h"
-/* Use a larger type even for 32 bit time_t systems so that we can keep
- microsecond accuracy in it */
-typedef curl_off_t timediff_t;
-#define CURL_FORMAT_TIMEDIFF_T CURL_FORMAT_CURL_OFF_T
-
-#define TIMEDIFF_T_MAX CURL_OFF_T_MAX
-#define TIMEDIFF_T_MIN CURL_OFF_T_MIN
+#include "timediff.h"
struct curltime {
time_t tv_sec; /* seconds */