diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2019-01-01 23:04:57 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-01-04 23:51:13 +0100 |
commit | 1e4ec09a26e58ba62c3a3dd3913939d7f4173809 (patch) | |
tree | 58316ad4805413dfe5e970fbc9ff8a020dbb43a6 /lib/timeval.h | |
parent | fa2d6ba84d7f87148738f3cbccf29016dd324f87 (diff) |
printf: introduce CURL_FORMAT_TIMEDIFF_T
Diffstat (limited to 'lib/timeval.h')
-rw-r--r-- | lib/timeval.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/timeval.h b/lib/timeval.h index fb3f680c4..96867d713 100644 --- a/lib/timeval.h +++ b/lib/timeval.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -26,8 +26,10 @@ #if SIZEOF_TIME_T < 8 typedef int timediff_t; +#define CURL_FORMAT_TIMEDIFF_T "d" #else typedef curl_off_t timediff_t; +#define CURL_FORMAT_TIMEDIFF_T CURL_FORMAT_CURL_OFF_T #endif struct curltime { |