aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-22 11:54:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-22 11:54:39 +0000
commit0c4907afccdce7bbf7236e46b9df697975e42d44 (patch)
tree1d3902c7db092f697820192d461b40d12e43994c
parente5cd0cc402c32e98a5180e66d6635da87bc55262 (diff)
curl_off_t is the new type for large file support
HttpPost is not defined anymore
-rw-r--r--include/curl/curl.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index dd70a3cd2..f34a3effe 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -70,9 +70,23 @@
extern "C" {
#endif
-/* silly trick to preserve functionality with older code, but making it use
- our name space for the future */
-#define HttpPost curl_httppost
+/*
+ * We want the typedef curl_off_t setup for large file support on all
+ * platforms.
+ */
+#if defined(_MSC_VER)
+/* MSVC */
+ typedef signed __int64 curl_off_t;
+#else
+#if (defined(__GNUC__) && defined(WIN32)) || defined(__WATCOMC__)
+/* gcc on windows or Watcom */
+ typedef long long curl_off_t;
+#else
+/* "normal" approach, do not that this does not necessarily mean that
+ the type is >32 bits, see the SIZEOF_CURL_OFF_T define for that! */
+ typedef off_t curl_off_t;
+#endif
+#endif
struct curl_httppost {
struct curl_httppost *next; /* next entry in the list */