summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-14 22:42:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-14 22:42:18 +0000
commita10581d4592cdaf768b8d2fb9318c704582762e2 (patch)
tree960f216fc94730ecd562fa18ec2ce6eec1744a66
parentcc2d6942bb48a6ceb0577765277b3c9882f805e4 (diff)
downloadgnurl-a10581d4592cdaf768b8d2fb9318c704582762e2.tar.gz
gnurl-a10581d4592cdaf768b8d2fb9318c704582762e2.tar.bz2
gnurl-a10581d4592cdaf768b8d2fb9318c704582762e2.zip
Possible code for large file support, added within #if 0 so far.
-rw-r--r--lib/setup.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h
index ef1514505..c44dee91b 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -193,6 +193,21 @@ typedef struct hostent Curl_addrinfo;
typedef struct in_addr Curl_ipconnect;
#endif
+#if 0
+#if (SIZEOF_OFF_T > 4)
+/* off_t is bigger than 4 bytes, and that makes it our prefered variable
+ type for filesizes */
+typedef off_t filesize_t;
+#else
+#ifdef HAVE_LONGLONG
+/* we have long long, use this for filesizes internally */
+typedef long long filesize_t;
+#else
+/* small off_t and no long long, no support for large files :-( */
+typedef long filesize_t;
+#endif /* didn't have long long */
+#endif /* sizeof wasn't bigger than 4 */
+#endif /* 0 */
#endif /* __CONFIG_H */