1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

curl_off_t is the new type for large file support

HttpPost is not defined anymore
This commit is contained in:
Daniel Stenberg 2004-01-22 11:54:39 +00:00
parent e5cd0cc402
commit 0c4907afcc

View File

@ -70,9 +70,23 @@
extern "C" { extern "C" {
#endif #endif
/* silly trick to preserve functionality with older code, but making it use /*
our name space for the future */ * We want the typedef curl_off_t setup for large file support on all
#define HttpPost curl_httppost * 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 {
struct curl_httppost *next; /* next entry in the list */ struct curl_httppost *next; /* next entry in the list */