aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_setup.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-01-31 23:01:01 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-01-31 23:01:01 +0100
commit9409d0c26c7d46cde20beaec09ef0babb10f3794 (patch)
treeee0b8f39c0cd26c3faeae127ddbdf1806492e835 /lib/curl_setup.h
parentfcb9b63ee53e0fafa256a10d8e5b490fab004462 (diff)
curl_setup: move the precautionary define of SIZEOF_TIME_T
... up to before it may be used for the TIME_T_MAX/MIN logic. Reported-by: Michael Kaufmann
Diffstat (limited to 'lib/curl_setup.h')
-rw-r--r--lib/curl_setup.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h
index ecc0bb3df..f128696e9 100644
--- a/lib/curl_setup.h
+++ b/lib/curl_setup.h
@@ -389,6 +389,11 @@
# define LSEEK_ERROR (off_t)-1
#endif
+#ifndef SIZEOF_TIME_T
+/* assume default size of time_t to be 32 bit */
+#define SIZEOF_TIME_T 4
+#endif
+
/*
* Default sizeof(off_t) in case it hasn't been defined in config file.
*/
@@ -625,11 +630,6 @@ int netware_init(void);
#error "Both libidn2 and WinIDN are enabled, choose one."
#endif
-#ifndef SIZEOF_TIME_T
-/* assume default size of time_t to be 32 bit */
-#define SIZEOF_TIME_T 4
-#endif
-
#define LIBIDN_REQUIRED_VERSION "0.4.1"
#if defined(USE_GNUTLS) || defined(USE_OPENSSL) || defined(USE_NSS) || \