]> granicus.if.org Git - curl/commitdiff
Possible code for large file support, added within #if 0 so far.
authorDaniel Stenberg <daniel@haxx.se>
Thu, 14 Aug 2003 22:42:18 +0000 (22:42 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 14 Aug 2003 22:42:18 +0000 (22:42 +0000)
lib/setup.h

index ef1514505eec7e9787b4b5631fe39319ff89621f..c44dee91b8a42f344d102bb6589215e7a02cccb5 100644 (file)
@@ -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 */