]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
- we switch to simply use FORMAT_OFF_T internally
authorDaniel Stenberg <daniel@haxx.se>
Tue, 2 Mar 2004 07:25:08 +0000 (07:25 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 2 Mar 2004 07:25:08 +0000 (07:25 +0000)
- 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.

lib/setup.h

index 35ccb12ad5ba0c847b36515eee01821f17b385c5..f3cdc16a8d4083dbb2b7a163fdf20a064a9b0366 100644 (file)
@@ -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