aboutsummaryrefslogtreecommitdiff
path: root/lib/setup.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-02 07:25:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-02 07:25:08 +0000
commit00d5f886e3037434f7173f06908ade39488476b5 (patch)
tree593b045a6aba6c8d56639760e86a3d0a1eb1fbce /lib/setup.h
parent49daeaf805122357409261c578df7fb233fb68e9 (diff)
- we switch to simply use FORMAT_OFF_T internally
- Also, we must not assume that SIZEOF_CURL_OFF_T is defined, as this file gets included from the ares dir at times and then it isn't defined.
Diffstat (limited to 'lib/setup.h')
-rw-r--r--lib/setup.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/setup.h b/lib/setup.h
index 35ccb12ad..f3cdc16a8 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -80,12 +80,11 @@ typedef unsigned char bool;
#endif
#endif /* HAVE_LONGLONG */
-/* We set up our internal prefered CURL_FORMAT_OFF_T here */
-#undef CURL_FORMAT_OFF_T
-#if SIZEOF_CURL_OFF_T > 4
-#define CURL_FORMAT_OFF_T "%lld"
+/* We set up our internal prefered (CURL_)FORMAT_OFF_T here */
+#if defined(SIZEOF_CURL_OFF_T) && (SIZEOF_CURL_OFF_T > 4)
+#define FORMAT_OFF_T "%lld"
#else
-#define CURL_FORMAT_OFF_T "%ld"
+#define FORMAT_OFF_T "%ld"
#endif