mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-27 19:28:37 -06:00
curl 2017-10-04 (3ea76790)
Code extracted from:
https://github.com/curl/curl.git
at commit 3ea76790571c1f7cf1bed34fabffd3cc20ad3dd3 (curl-7_56_0).
This commit is contained in:
@@ -36,8 +36,6 @@
|
||||
|
||||
#include "curlver.h" /* libcurl version defines */
|
||||
#include "system.h" /* determine things run-time */
|
||||
#include "curlbuild.h" /* libcurl build definitions */
|
||||
#include "curlrules.h" /* libcurl rules enforcement */
|
||||
|
||||
/*
|
||||
* Define WIN32 when build target is Win32 API
|
||||
@@ -76,6 +74,7 @@
|
||||
#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
|
||||
defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
|
||||
defined(ANDROID) || defined(__ANDROID__) || defined(__OpenBSD__) || \
|
||||
defined(__CYGWIN__) || \
|
||||
(defined(__FreeBSD_version) && (__FreeBSD_version < 800000))
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
@@ -134,6 +133,27 @@ typedef int curl_socket_t;
|
||||
#define curl_socket_typedef
|
||||
#endif /* curl_socket_typedef */
|
||||
|
||||
/* enum for the different supported SSL backends */
|
||||
typedef enum {
|
||||
CURLSSLBACKEND_NONE = 0,
|
||||
CURLSSLBACKEND_OPENSSL = 1,
|
||||
CURLSSLBACKEND_GNUTLS = 2,
|
||||
CURLSSLBACKEND_NSS = 3,
|
||||
CURLSSLBACKEND_OBSOLETE4 = 4, /* Was QSOSSL. */
|
||||
CURLSSLBACKEND_GSKIT = 5,
|
||||
CURLSSLBACKEND_POLARSSL = 6,
|
||||
CURLSSLBACKEND_WOLFSSL = 7,
|
||||
CURLSSLBACKEND_SCHANNEL = 8,
|
||||
CURLSSLBACKEND_DARWINSSL = 9,
|
||||
CURLSSLBACKEND_AXTLS = 10,
|
||||
CURLSSLBACKEND_MBEDTLS = 11
|
||||
} curl_sslbackend;
|
||||
|
||||
/* aliases for library clones and renames */
|
||||
#define CURLSSLBACKEND_LIBRESSL CURLSSLBACKEND_OPENSSL
|
||||
#define CURLSSLBACKEND_BORINGSSL CURLSSLBACKEND_OPENSSL
|
||||
#define CURLSSLBACKEND_CYASSL CURLSSLBACKEND_WOLFSSL
|
||||
|
||||
struct curl_httppost {
|
||||
struct curl_httppost *next; /* next entry in the list */
|
||||
char *name; /* pointer to allocated name */
|
||||
@@ -337,7 +357,7 @@ typedef size_t (*curl_read_callback)(char *buffer,
|
||||
size_t nitems,
|
||||
void *instream);
|
||||
|
||||
typedef enum {
|
||||
typedef enum {
|
||||
CURLSOCKTYPE_IPCXN, /* socket created for a specific IP connection */
|
||||
CURLSOCKTYPE_ACCEPT, /* socket created by accept() call */
|
||||
CURLSOCKTYPE_LAST /* never use */
|
||||
@@ -379,7 +399,7 @@ typedef enum {
|
||||
CURLIOE_LAST /* never use */
|
||||
} curlioerr;
|
||||
|
||||
typedef enum {
|
||||
typedef enum {
|
||||
CURLIOCMD_NOP, /* no operation */
|
||||
CURLIOCMD_RESTARTREAD, /* restart the read stream from start */
|
||||
CURLIOCMD_LAST /* never use */
|
||||
@@ -679,6 +699,8 @@ typedef enum {
|
||||
#define CURLAUTH_NEGOTIATE (((unsigned long)1)<<2)
|
||||
/* Deprecated since the advent of CURLAUTH_NEGOTIATE */
|
||||
#define CURLAUTH_GSSNEGOTIATE CURLAUTH_NEGOTIATE
|
||||
/* Used for CURLOPT_SOCKS5_AUTH to stay terminologically correct */
|
||||
#define CURLAUTH_GSSAPI CURLAUTH_NEGOTIATE
|
||||
#define CURLAUTH_NTLM (((unsigned long)1)<<3)
|
||||
#define CURLAUTH_DIGEST_IE (((unsigned long)1)<<4)
|
||||
#define CURLAUTH_NTLM_WB (((unsigned long)1)<<5)
|
||||
@@ -1782,6 +1804,18 @@ typedef enum {
|
||||
/* Suppress proxy CONNECT response headers from user callbacks */
|
||||
CINIT(SUPPRESS_CONNECT_HEADERS, LONG, 265),
|
||||
|
||||
/* The request target, instead of extracted from the URL */
|
||||
CINIT(REQUEST_TARGET, STRINGPOINT, 266),
|
||||
|
||||
/* bitmask of allowed auth methods for connections to SOCKS5 proxies */
|
||||
CINIT(SOCKS5_AUTH, LONG, 267),
|
||||
|
||||
/* Enable/disable SSH compression */
|
||||
CINIT(SSH_COMPRESSION, LONG, 268),
|
||||
|
||||
/* Post MIME data. */
|
||||
CINIT(MIMEPOST, OBJECTPOINT, 269),
|
||||
|
||||
CURLOPT_LASTENTRY /* the last unused */
|
||||
} CURLoption;
|
||||
|
||||
@@ -1928,15 +1962,140 @@ typedef enum {
|
||||
CURL_TIMECOND_LAST
|
||||
} curl_TimeCond;
|
||||
|
||||
/* Special size_t value signaling a zero-terminated string. */
|
||||
#define CURL_ZERO_TERMINATED ((size_t) -1)
|
||||
|
||||
/* curl_strequal() and curl_strnequal() are subject for removal in a future
|
||||
libcurl, see lib/README.curlx for details
|
||||
release */
|
||||
CURL_EXTERN int curl_strequal(const char *s1, const char *s2);
|
||||
CURL_EXTERN int curl_strnequal(const char *s1, const char *s2, size_t n);
|
||||
|
||||
!checksrc! disable SPACEBEFOREPAREN 2
|
||||
*/
|
||||
CURL_EXTERN int (curl_strequal)(const char *s1, const char *s2);
|
||||
CURL_EXTERN int (curl_strnequal)(const char *s1, const char *s2, size_t n);
|
||||
/* Mime/form handling support. */
|
||||
typedef struct curl_mime_s curl_mime; /* Mime context. */
|
||||
typedef struct curl_mimepart_s curl_mimepart; /* Mime part context. */
|
||||
|
||||
/*
|
||||
* NAME curl_mime_init()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* Create a mime context and return its handle. The easy parameter is the
|
||||
* target handle.
|
||||
*/
|
||||
CURL_EXTERN curl_mime *curl_mime_init(CURL *easy);
|
||||
|
||||
/*
|
||||
* NAME curl_mime_free()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* release a mime handle and its substructures.
|
||||
*/
|
||||
CURL_EXTERN void curl_mime_free(curl_mime *mime);
|
||||
|
||||
/*
|
||||
* NAME curl_mime_addpart()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* Append a new empty part to the given mime context and return a handle to
|
||||
* the created part.
|
||||
*/
|
||||
CURL_EXTERN curl_mimepart *curl_mime_addpart(curl_mime *mime);
|
||||
|
||||
/*
|
||||
* NAME curl_mime_name()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* Set mime/form part name.
|
||||
*/
|
||||
CURL_EXTERN CURLcode curl_mime_name(curl_mimepart *part, const char *name);
|
||||
|
||||
/*
|
||||
* NAME curl_mime_filename()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* Set mime part remote file name.
|
||||
*/
|
||||
CURL_EXTERN CURLcode curl_mime_filename(curl_mimepart *part,
|
||||
const char *filename);
|
||||
|
||||
/*
|
||||
* NAME curl_mime_type()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* Set mime part type.
|
||||
*/
|
||||
CURL_EXTERN CURLcode curl_mime_type(curl_mimepart *part, const char *mimetype);
|
||||
|
||||
/*
|
||||
* NAME curl_mime_encoder()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* Set mime data transfer encoder.
|
||||
*/
|
||||
CURL_EXTERN CURLcode curl_mime_encoder(curl_mimepart *part,
|
||||
const char *encoding);
|
||||
|
||||
/*
|
||||
* NAME curl_mime_data()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* Set mime part data source from memory data,
|
||||
*/
|
||||
CURL_EXTERN CURLcode curl_mime_data(curl_mimepart *part,
|
||||
const char *data, size_t datasize);
|
||||
|
||||
/*
|
||||
* NAME curl_mime_filedata()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* Set mime part data source from named file.
|
||||
*/
|
||||
CURL_EXTERN CURLcode curl_mime_filedata(curl_mimepart *part,
|
||||
const char *filename);
|
||||
|
||||
/*
|
||||
* NAME curl_mime_data_cb()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* Set mime part data source from callback function.
|
||||
*/
|
||||
CURL_EXTERN CURLcode curl_mime_data_cb(curl_mimepart *part,
|
||||
curl_off_t datasize,
|
||||
curl_read_callback readfunc,
|
||||
curl_seek_callback seekfunc,
|
||||
curl_free_callback freefunc,
|
||||
void *arg);
|
||||
|
||||
/*
|
||||
* NAME curl_mime_subparts()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* Set mime part data source from subparts.
|
||||
*/
|
||||
CURL_EXTERN CURLcode curl_mime_subparts(curl_mimepart *part,
|
||||
curl_mime *subparts);
|
||||
/*
|
||||
* NAME curl_mime_headers()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* Set mime part headers.
|
||||
*/
|
||||
CURL_EXTERN CURLcode curl_mime_headers(curl_mimepart *part,
|
||||
struct curl_slist *headers,
|
||||
int take_ownership);
|
||||
|
||||
/* Old form API. */
|
||||
/* name is uppercase CURLFORM_<name> */
|
||||
#ifdef CFINIT
|
||||
#undef CFINIT
|
||||
@@ -2178,6 +2337,47 @@ struct curl_slist {
|
||||
struct curl_slist *next;
|
||||
};
|
||||
|
||||
/*
|
||||
* NAME curl_global_sslset()
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* When built with multiple SSL backends, curl_global_sslset() allows to
|
||||
* choose one. This function can only be called once, and it must be called
|
||||
* *before* curl_global_init().
|
||||
*
|
||||
* The backend can be identified by the id (e.g. CURLSSLBACKEND_OPENSSL). The
|
||||
* backend can also be specified via the name parameter (passing -1 as id).
|
||||
* If both id and name are specified, the name will be ignored. If neither id
|
||||
* nor name are specified, the function will fail with
|
||||
* CURLSSLSET_UNKNOWN_BACKEND and set the "avail" pointer to the
|
||||
* NULL-terminated list of available backends.
|
||||
*
|
||||
* Upon success, the function returns CURLSSLSET_OK.
|
||||
*
|
||||
* If the specified SSL backend is not available, the function returns
|
||||
* CURLSSLSET_UNKNOWN_BACKEND and sets the "avail" pointer to a NULL-terminated
|
||||
* list of available SSL backends.
|
||||
*
|
||||
* The SSL backend can be set only once. If it has already been set, a
|
||||
* subsequent attempt to change it will result in a CURLSSLSET_TOO_LATE.
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
curl_sslbackend id;
|
||||
const char *name;
|
||||
} curl_ssl_backend;
|
||||
|
||||
typedef enum {
|
||||
CURLSSLSET_OK = 0,
|
||||
CURLSSLSET_UNKNOWN_BACKEND,
|
||||
CURLSSLSET_TOO_LATE,
|
||||
CURLSSLSET_NO_BACKENDS /* libcurl was built without any SSL support */
|
||||
} CURLsslset;
|
||||
|
||||
CURL_EXTERN CURLsslset curl_global_sslset(curl_sslbackend id, const char *name,
|
||||
const curl_ssl_backend ***avail);
|
||||
|
||||
/*
|
||||
* NAME curl_slist_append()
|
||||
*
|
||||
@@ -2218,27 +2418,6 @@ struct curl_certinfo {
|
||||
format "name: value" */
|
||||
};
|
||||
|
||||
/* enum for the different supported SSL backends */
|
||||
typedef enum {
|
||||
CURLSSLBACKEND_NONE = 0,
|
||||
CURLSSLBACKEND_OPENSSL = 1,
|
||||
CURLSSLBACKEND_GNUTLS = 2,
|
||||
CURLSSLBACKEND_NSS = 3,
|
||||
CURLSSLBACKEND_OBSOLETE4 = 4, /* Was QSOSSL. */
|
||||
CURLSSLBACKEND_GSKIT = 5,
|
||||
CURLSSLBACKEND_POLARSSL = 6,
|
||||
CURLSSLBACKEND_CYASSL = 7,
|
||||
CURLSSLBACKEND_SCHANNEL = 8,
|
||||
CURLSSLBACKEND_DARWINSSL = 9,
|
||||
CURLSSLBACKEND_AXTLS = 10,
|
||||
CURLSSLBACKEND_MBEDTLS = 11
|
||||
} curl_sslbackend;
|
||||
|
||||
/* aliases for library clones and renames */
|
||||
#define CURLSSLBACKEND_LIBRESSL 1
|
||||
#define CURLSSLBACKEND_BORINGSSL 1
|
||||
#define CURLSSLBACKEND_WOLFSSL 6
|
||||
|
||||
/* Information about the SSL library used and the respective internal SSL
|
||||
handle, which can be used to obtain further information regarding the
|
||||
connection. Asked for with CURLINFO_TLS_SSL_PTR or CURLINFO_TLS_SESSION. */
|
||||
@@ -2253,6 +2432,7 @@ struct curl_tlssessioninfo {
|
||||
#define CURLINFO_SLIST 0x400000
|
||||
#define CURLINFO_PTR 0x400000 /* same as SLIST */
|
||||
#define CURLINFO_SOCKET 0x500000
|
||||
#define CURLINFO_OFF_T 0x600000
|
||||
#define CURLINFO_MASK 0x0fffff
|
||||
#define CURLINFO_TYPEMASK 0xf00000
|
||||
|
||||
@@ -2265,15 +2445,21 @@ typedef enum {
|
||||
CURLINFO_CONNECT_TIME = CURLINFO_DOUBLE + 5,
|
||||
CURLINFO_PRETRANSFER_TIME = CURLINFO_DOUBLE + 6,
|
||||
CURLINFO_SIZE_UPLOAD = CURLINFO_DOUBLE + 7,
|
||||
CURLINFO_SIZE_UPLOAD_T = CURLINFO_OFF_T + 7,
|
||||
CURLINFO_SIZE_DOWNLOAD = CURLINFO_DOUBLE + 8,
|
||||
CURLINFO_SIZE_DOWNLOAD_T = CURLINFO_OFF_T + 8,
|
||||
CURLINFO_SPEED_DOWNLOAD = CURLINFO_DOUBLE + 9,
|
||||
CURLINFO_SPEED_DOWNLOAD_T = CURLINFO_OFF_T + 9,
|
||||
CURLINFO_SPEED_UPLOAD = CURLINFO_DOUBLE + 10,
|
||||
CURLINFO_SPEED_UPLOAD_T = CURLINFO_OFF_T + 10,
|
||||
CURLINFO_HEADER_SIZE = CURLINFO_LONG + 11,
|
||||
CURLINFO_REQUEST_SIZE = CURLINFO_LONG + 12,
|
||||
CURLINFO_SSL_VERIFYRESULT = CURLINFO_LONG + 13,
|
||||
CURLINFO_FILETIME = CURLINFO_LONG + 14,
|
||||
CURLINFO_CONTENT_LENGTH_DOWNLOAD = CURLINFO_DOUBLE + 15,
|
||||
CURLINFO_CONTENT_LENGTH_DOWNLOAD_T = CURLINFO_OFF_T + 15,
|
||||
CURLINFO_CONTENT_LENGTH_UPLOAD = CURLINFO_DOUBLE + 16,
|
||||
CURLINFO_CONTENT_LENGTH_UPLOAD_T = CURLINFO_OFF_T + 16,
|
||||
CURLINFO_STARTTRANSFER_TIME = CURLINFO_DOUBLE + 17,
|
||||
CURLINFO_CONTENT_TYPE = CURLINFO_STRING + 18,
|
||||
CURLINFO_REDIRECT_TIME = CURLINFO_DOUBLE + 19,
|
||||
@@ -2471,6 +2657,7 @@ typedef struct {
|
||||
#define CURL_VERSION_PSL (1<<20) /* Mozilla's Public Suffix List, used
|
||||
for cookie domain verification */
|
||||
#define CURL_VERSION_HTTPS_PROXY (1<<21) /* HTTPS-proxy support built-in */
|
||||
#define CURL_VERSION_MULTI_SSL (1<<22) /* Multiple SSL backends available */
|
||||
|
||||
/*
|
||||
* NAME curl_version_info()
|
||||
|
||||
@@ -1,197 +0,0 @@
|
||||
#ifndef __CURL_CURLBUILD_H
|
||||
#define __CURL_CURLBUILD_H
|
||||
/***************************************************************************
|
||||
* _ _ ____ _
|
||||
* Project ___| | | | _ \| |
|
||||
* / __| | | | |_) | |
|
||||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||
*
|
||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||
* copies of the Software, and permit persons to whom the Software is
|
||||
* furnished to do so, under the terms of the COPYING file.
|
||||
*
|
||||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
* KIND, either express or implied.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/* ================================================================ */
|
||||
/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */
|
||||
/* ================================================================ */
|
||||
|
||||
/*
|
||||
* NOTE 1:
|
||||
* -------
|
||||
*
|
||||
* Nothing in this file is intended to be modified or adjusted by the
|
||||
* curl library user nor by the curl library builder.
|
||||
*
|
||||
* If you think that something actually needs to be changed, adjusted
|
||||
* or fixed in this file, then, report it on the libcurl development
|
||||
* mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
|
||||
*
|
||||
* This header file shall only export symbols which are 'curl' or 'CURL'
|
||||
* prefixed, otherwise public name space would be polluted.
|
||||
*
|
||||
* NOTE 2:
|
||||
* -------
|
||||
*
|
||||
* Right now you might be staring at file include/curl/curlbuild.h.in or
|
||||
* at file include/curl/curlbuild.h, this is due to the following reason:
|
||||
*
|
||||
* On systems capable of running the configure script, the configure process
|
||||
* will overwrite the distributed include/curl/curlbuild.h file with one that
|
||||
* is suitable and specific to the library being configured and built, which
|
||||
* is generated from the include/curl/curlbuild.h.in template file.
|
||||
*
|
||||
*/
|
||||
|
||||
/* ================================================================ */
|
||||
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */
|
||||
/* ================================================================ */
|
||||
|
||||
#ifdef CURL_SIZEOF_LONG
|
||||
#error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h"
|
||||
Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined
|
||||
#endif
|
||||
|
||||
#ifdef CURL_TYPEOF_CURL_SOCKLEN_T
|
||||
#error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
|
||||
Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined
|
||||
#endif
|
||||
|
||||
#ifdef CURL_SIZEOF_CURL_SOCKLEN_T
|
||||
#error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
|
||||
Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined
|
||||
#endif
|
||||
|
||||
#ifdef CURL_TYPEOF_CURL_OFF_T
|
||||
#error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
|
||||
Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined
|
||||
#endif
|
||||
|
||||
#ifdef CURL_FORMAT_CURL_OFF_T
|
||||
#error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h"
|
||||
Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined
|
||||
#endif
|
||||
|
||||
#ifdef CURL_FORMAT_CURL_OFF_TU
|
||||
#error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h"
|
||||
Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined
|
||||
#endif
|
||||
|
||||
#ifdef CURL_FORMAT_OFF_T
|
||||
#error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h"
|
||||
Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined
|
||||
#endif
|
||||
|
||||
#ifdef CURL_SIZEOF_CURL_OFF_T
|
||||
#error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
|
||||
Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined
|
||||
#endif
|
||||
|
||||
#ifdef CURL_SUFFIX_CURL_OFF_T
|
||||
#error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h"
|
||||
Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined
|
||||
#endif
|
||||
|
||||
#ifdef CURL_SUFFIX_CURL_OFF_TU
|
||||
#error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h"
|
||||
Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined
|
||||
#endif
|
||||
|
||||
/* ================================================================ */
|
||||
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */
|
||||
/* ================================================================ */
|
||||
|
||||
/* Configure process defines this to 1 when it finds out that system */
|
||||
/* header file ws2tcpip.h must be included by the external interface. */
|
||||
#cmakedefine CURL_PULL_WS2TCPIP_H
|
||||
#ifdef CURL_PULL_WS2TCPIP_H
|
||||
# ifndef WIN32_LEAN_AND_MEAN
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# endif
|
||||
# include <windows.h>
|
||||
# include <winsock2.h>
|
||||
# include <ws2tcpip.h>
|
||||
#endif
|
||||
|
||||
/* Configure process defines this to 1 when it finds out that system */
|
||||
/* header file sys/types.h must be included by the external interface. */
|
||||
#cmakedefine CURL_PULL_SYS_TYPES_H
|
||||
#ifdef CURL_PULL_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
|
||||
/* Configure process defines this to 1 when it finds out that system */
|
||||
/* header file stdint.h must be included by the external interface. */
|
||||
#cmakedefine CURL_PULL_STDINT_H
|
||||
#ifdef CURL_PULL_STDINT_H
|
||||
# include <stdint.h>
|
||||
#endif
|
||||
|
||||
/* Configure process defines this to 1 when it finds out that system */
|
||||
/* header file inttypes.h must be included by the external interface. */
|
||||
#cmakedefine CURL_PULL_INTTYPES_H
|
||||
#ifdef CURL_PULL_INTTYPES_H
|
||||
# include <inttypes.h>
|
||||
#endif
|
||||
|
||||
/* Configure process defines this to 1 when it finds out that system */
|
||||
/* header file sys/socket.h must be included by the external interface. */
|
||||
#cmakedefine CURL_PULL_SYS_SOCKET_H
|
||||
#ifdef CURL_PULL_SYS_SOCKET_H
|
||||
# include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
/* Configure process defines this to 1 when it finds out that system */
|
||||
/* header file sys/poll.h must be included by the external interface. */
|
||||
#cmakedefine CURL_PULL_SYS_POLL_H
|
||||
#ifdef CURL_PULL_SYS_POLL_H
|
||||
# include <sys/poll.h>
|
||||
#endif
|
||||
|
||||
/* The size of `long', as computed by sizeof. */
|
||||
#define CURL_SIZEOF_LONG ${CURL_SIZEOF_LONG}
|
||||
|
||||
/* Integral data type used for curl_socklen_t. */
|
||||
#define CURL_TYPEOF_CURL_SOCKLEN_T ${CURL_TYPEOF_CURL_SOCKLEN_T}
|
||||
|
||||
/* The size of `curl_socklen_t', as computed by sizeof. */
|
||||
#define CURL_SIZEOF_CURL_SOCKLEN_T ${CURL_SIZEOF_CURL_SOCKLEN_T}
|
||||
|
||||
/* Data type definition of curl_socklen_t. */
|
||||
typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
|
||||
|
||||
/* Signed integral data type used for curl_off_t. */
|
||||
#define CURL_TYPEOF_CURL_OFF_T ${CURL_TYPEOF_CURL_OFF_T}
|
||||
|
||||
/* Data type definition of curl_off_t. */
|
||||
typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
|
||||
|
||||
/* curl_off_t formatting string directive without "%" conversion specifier. */
|
||||
#define CURL_FORMAT_CURL_OFF_T "${CURL_FORMAT_CURL_OFF_T}"
|
||||
|
||||
/* unsigned curl_off_t formatting string without "%" conversion specifier. */
|
||||
#define CURL_FORMAT_CURL_OFF_TU "${CURL_FORMAT_CURL_OFF_TU}"
|
||||
|
||||
/* curl_off_t formatting string directive with "%" conversion specifier. */
|
||||
#define CURL_FORMAT_OFF_T "${CURL_FORMAT_OFF_T}"
|
||||
|
||||
/* The size of `curl_off_t', as computed by sizeof. */
|
||||
#define CURL_SIZEOF_CURL_OFF_T ${CURL_SIZEOF_CURL_OFF_T}
|
||||
|
||||
/* curl_off_t constant suffix. */
|
||||
#define CURL_SUFFIX_CURL_OFF_T ${CURL_SUFFIX_CURL_OFF_T}
|
||||
|
||||
/* unsigned curl_off_t constant suffix. */
|
||||
#define CURL_SUFFIX_CURL_OFF_TU ${CURL_SUFFIX_CURL_OFF_TU}
|
||||
|
||||
#endif /* __CURL_CURLBUILD_H */
|
||||
@@ -1,239 +0,0 @@
|
||||
#ifndef __CURL_CURLRULES_H
|
||||
#define __CURL_CURLRULES_H
|
||||
/***************************************************************************
|
||||
* _ _ ____ _
|
||||
* Project ___| | | | _ \| |
|
||||
* / __| | | | |_) | |
|
||||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
* are also available at https://curl.haxx.se/docs/copyright.html.
|
||||
*
|
||||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||
* copies of the Software, and permit persons to whom the Software is
|
||||
* furnished to do so, under the terms of the COPYING file.
|
||||
*
|
||||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
* KIND, either express or implied.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/* ================================================================ */
|
||||
/* COMPILE TIME SANITY CHECKS */
|
||||
/* ================================================================ */
|
||||
|
||||
/*
|
||||
* NOTE 1:
|
||||
* -------
|
||||
*
|
||||
* All checks done in this file are intentionally placed in a public
|
||||
* header file which is pulled by curl/curl.h when an application is
|
||||
* being built using an already built libcurl library. Additionally
|
||||
* this file is also included and used when building the library.
|
||||
*
|
||||
* If compilation fails on this file it is certainly sure that the
|
||||
* problem is elsewhere. It could be a problem in the curlbuild.h
|
||||
* header file, or simply that you are using different compilation
|
||||
* settings than those used to build the library.
|
||||
*
|
||||
* Nothing in this file is intended to be modified or adjusted by the
|
||||
* curl library user nor by the curl library builder.
|
||||
*
|
||||
* Do not deactivate any check, these are done to make sure that the
|
||||
* library is properly built and used.
|
||||
*
|
||||
* You can find further help on the libcurl development mailing list:
|
||||
* https://cool.haxx.se/mailman/listinfo/curl-library/
|
||||
*
|
||||
* NOTE 2
|
||||
* ------
|
||||
*
|
||||
* Some of the following compile time checks are based on the fact
|
||||
* that the dimension of a constant array can not be a negative one.
|
||||
* In this way if the compile time verification fails, the compilation
|
||||
* will fail issuing an error. The error description wording is compiler
|
||||
* dependent but it will be quite similar to one of the following:
|
||||
*
|
||||
* "negative subscript or subscript is too large"
|
||||
* "array must have at least one element"
|
||||
* "-1 is an illegal array size"
|
||||
* "size of array is negative"
|
||||
*
|
||||
* If you are building an application which tries to use an already
|
||||
* built libcurl library and you are getting this kind of errors on
|
||||
* this file, it is a clear indication that there is a mismatch between
|
||||
* how the library was built and how you are trying to use it for your
|
||||
* application. Your already compiled or binary library provider is the
|
||||
* only one who can give you the details you need to properly use it.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Verify that some macros are actually defined.
|
||||
*/
|
||||
|
||||
#ifndef CURL_SIZEOF_LONG
|
||||
# error "CURL_SIZEOF_LONG definition is missing!"
|
||||
Error Compilation_aborted_CURL_SIZEOF_LONG_is_missing
|
||||
#endif
|
||||
|
||||
#ifndef CURL_TYPEOF_CURL_SOCKLEN_T
|
||||
# error "CURL_TYPEOF_CURL_SOCKLEN_T definition is missing!"
|
||||
Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_is_missing
|
||||
#endif
|
||||
|
||||
#ifndef CURL_SIZEOF_CURL_SOCKLEN_T
|
||||
# error "CURL_SIZEOF_CURL_SOCKLEN_T definition is missing!"
|
||||
Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_is_missing
|
||||
#endif
|
||||
|
||||
#ifndef CURL_TYPEOF_CURL_OFF_T
|
||||
# error "CURL_TYPEOF_CURL_OFF_T definition is missing!"
|
||||
Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_is_missing
|
||||
#endif
|
||||
|
||||
#ifndef CURL_FORMAT_CURL_OFF_T
|
||||
# error "CURL_FORMAT_CURL_OFF_T definition is missing!"
|
||||
Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_is_missing
|
||||
#endif
|
||||
|
||||
#ifndef CURL_FORMAT_CURL_OFF_TU
|
||||
# error "CURL_FORMAT_CURL_OFF_TU definition is missing!"
|
||||
Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_is_missing
|
||||
#endif
|
||||
|
||||
#ifndef CURL_SIZEOF_CURL_OFF_T
|
||||
# error "CURL_SIZEOF_CURL_OFF_T definition is missing!"
|
||||
Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_is_missing
|
||||
#endif
|
||||
|
||||
#ifndef CURL_SUFFIX_CURL_OFF_T
|
||||
# error "CURL_SUFFIX_CURL_OFF_T definition is missing!"
|
||||
Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_is_missing
|
||||
#endif
|
||||
|
||||
#ifndef CURL_SUFFIX_CURL_OFF_TU
|
||||
# error "CURL_SUFFIX_CURL_OFF_TU definition is missing!"
|
||||
Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_is_missing
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Macros private to this header file.
|
||||
*/
|
||||
|
||||
#define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1
|
||||
|
||||
#define CurlchkszGE(t1, t2) sizeof(t1) >= sizeof(t2) ? 1 : -1
|
||||
|
||||
/*
|
||||
* Verify that the size previously defined and expected for long
|
||||
* is the same as the one reported by sizeof() at compile time.
|
||||
*/
|
||||
|
||||
typedef char
|
||||
__curl_rule_01__
|
||||
[CurlchkszEQ(long, CURL_SIZEOF_LONG)];
|
||||
|
||||
/*
|
||||
* Verify that the size previously defined and expected for
|
||||
* curl_off_t is actually the the same as the one reported
|
||||
* by sizeof() at compile time.
|
||||
*/
|
||||
|
||||
typedef char
|
||||
__curl_rule_02__
|
||||
[CurlchkszEQ(curl_off_t, CURL_SIZEOF_CURL_OFF_T)];
|
||||
|
||||
/*
|
||||
* Verify at compile time that the size of curl_off_t as reported
|
||||
* by sizeof() is greater or equal than the one reported for long
|
||||
* for the current compilation.
|
||||
*/
|
||||
|
||||
typedef char
|
||||
__curl_rule_03__
|
||||
[CurlchkszGE(curl_off_t, long)];
|
||||
|
||||
/*
|
||||
* Verify that the size previously defined and expected for
|
||||
* curl_socklen_t is actually the the same as the one reported
|
||||
* by sizeof() at compile time.
|
||||
*/
|
||||
|
||||
typedef char
|
||||
__curl_rule_04__
|
||||
[CurlchkszEQ(curl_socklen_t, CURL_SIZEOF_CURL_SOCKLEN_T)];
|
||||
|
||||
/*
|
||||
* Verify at compile time that the size of curl_socklen_t as reported
|
||||
* by sizeof() is greater or equal than the one reported for int for
|
||||
* the current compilation.
|
||||
*/
|
||||
|
||||
typedef char
|
||||
__curl_rule_05__
|
||||
[CurlchkszGE(curl_socklen_t, int)];
|
||||
|
||||
/* ================================================================ */
|
||||
/* EXTERNALLY AND INTERNALLY VISIBLE DEFINITIONS */
|
||||
/* ================================================================ */
|
||||
|
||||
/*
|
||||
* CURL_ISOCPP and CURL_OFF_T_C definitions are done here in order to allow
|
||||
* these to be visible and exported by the external libcurl interface API,
|
||||
* while also making them visible to the library internals, simply including
|
||||
* curl_setup.h, without actually needing to include curl.h internally.
|
||||
* If some day this section would grow big enough, all this should be moved
|
||||
* to its own header file.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Figure out if we can use the ## preprocessor operator, which is supported
|
||||
* by ISO/ANSI C and C++. Some compilers support it without setting __STDC__
|
||||
* or __cplusplus so we need to carefully check for them too.
|
||||
*/
|
||||
|
||||
#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) || \
|
||||
defined(__HP_aCC) || defined(__BORLANDC__) || defined(__LCC__) || \
|
||||
defined(__POCC__) || defined(__SALFORDC__) || defined(__HIGHC__) || \
|
||||
defined(__ILEC400__)
|
||||
/* This compiler is believed to have an ISO compatible preprocessor */
|
||||
#define CURL_ISOCPP
|
||||
#else
|
||||
/* This compiler is believed NOT to have an ISO compatible preprocessor */
|
||||
#undef CURL_ISOCPP
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Macros for minimum-width signed and unsigned curl_off_t integer constants.
|
||||
*/
|
||||
|
||||
#if defined(__BORLANDC__) && (__BORLANDC__ == 0x0551)
|
||||
# define __CURL_OFF_T_C_HLPR2(x) x
|
||||
# define __CURL_OFF_T_C_HLPR1(x) __CURL_OFF_T_C_HLPR2(x)
|
||||
# define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HLPR1(Val) ## \
|
||||
__CURL_OFF_T_C_HLPR1(CURL_SUFFIX_CURL_OFF_T)
|
||||
# define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HLPR1(Val) ## \
|
||||
__CURL_OFF_T_C_HLPR1(CURL_SUFFIX_CURL_OFF_TU)
|
||||
#else
|
||||
# ifdef CURL_ISOCPP
|
||||
# define __CURL_OFF_T_C_HLPR2(Val,Suffix) Val ## Suffix
|
||||
# else
|
||||
# define __CURL_OFF_T_C_HLPR2(Val,Suffix) Val/**/Suffix
|
||||
# endif
|
||||
# define __CURL_OFF_T_C_HLPR1(Val,Suffix) __CURL_OFF_T_C_HLPR2(Val,Suffix)
|
||||
# define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HLPR1(Val,CURL_SUFFIX_CURL_OFF_T)
|
||||
# define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HLPR1(Val,CURL_SUFFIX_CURL_OFF_TU)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Get rid of macros private to this header file.
|
||||
*/
|
||||
|
||||
#undef CurlchkszEQ
|
||||
#undef CurlchkszGE
|
||||
|
||||
#endif /* __CURL_CURLRULES_H */
|
||||
@@ -30,13 +30,13 @@
|
||||
|
||||
/* This is the version number of the libcurl package from which this header
|
||||
file origins: */
|
||||
#define LIBCURL_VERSION "7.54.1-DEV"
|
||||
#define LIBCURL_VERSION "7.56.0-DEV"
|
||||
|
||||
/* The numeric version number is also available "in parts" by using these
|
||||
defines: */
|
||||
#define LIBCURL_VERSION_MAJOR 7
|
||||
#define LIBCURL_VERSION_MINOR 54
|
||||
#define LIBCURL_VERSION_PATCH 1
|
||||
#define LIBCURL_VERSION_MINOR 56
|
||||
#define LIBCURL_VERSION_PATCH 0
|
||||
|
||||
/* This is the numeric version of the libcurl version number, meant for easier
|
||||
parsing and comparions by programs. The LIBCURL_VERSION_NUM define will
|
||||
@@ -57,7 +57,7 @@
|
||||
CURL_VERSION_BITS() macro since curl's own configure script greps for it
|
||||
and needs it to contain the full number.
|
||||
*/
|
||||
#define LIBCURL_VERSION_NUM 0x073601
|
||||
#define LIBCURL_VERSION_NUM 0x073800
|
||||
|
||||
/*
|
||||
* This is the date and time when the full source package was created. The
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
||||
@@ -22,14 +22,6 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/*
|
||||
* This header is supposed to eventually replace curlbuild.h. This little one
|
||||
* is still learning. During the experimental phase, this header files
|
||||
* defines symbols using the prefixes CURLSYS_ or curlsys_. When we feel
|
||||
* confident enough, we replace curlbuild.h with this file and rename all
|
||||
* prefixes to CURL_ and curl_.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Try to keep one section per platform, compiler and architecture, otherwise,
|
||||
* if an existing section is reused for a different one and later on the
|
||||
@@ -60,323 +52,271 @@
|
||||
|
||||
#if defined(__DJGPP__) || defined(__GO32__)
|
||||
# if defined(__DJGPP__) && (__DJGPP__ > 1)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# else
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 4
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# endif
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T int
|
||||
|
||||
#elif defined(__SALFORDC__)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 4
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T int
|
||||
|
||||
#elif defined(__BORLANDC__)
|
||||
# if (__BORLANDC__ < 0x520)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 4
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# else
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T __int64
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "I64d"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "I64u"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T i64
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ui64
|
||||
# define CURL_TYPEOF_CURL_OFF_T __int64
|
||||
# define CURL_FORMAT_CURL_OFF_T "I64d"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "I64u"
|
||||
# define CURL_SUFFIX_CURL_OFF_T i64
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ui64
|
||||
# endif
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T int
|
||||
|
||||
#elif defined(__TURBOC__)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 4
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T int
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(__386__)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T __int64
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "I64d"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "I64u"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T i64
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ui64
|
||||
# define CURL_TYPEOF_CURL_OFF_T __int64
|
||||
# define CURL_FORMAT_CURL_OFF_T "I64d"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "I64u"
|
||||
# define CURL_SUFFIX_CURL_OFF_T i64
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ui64
|
||||
# else
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 4
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# endif
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T int
|
||||
|
||||
#elif defined(__POCC__)
|
||||
# if (__POCC__ < 280)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 4
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# elif defined(_MSC_VER)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T __int64
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "I64d"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "I64u"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T i64
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ui64
|
||||
# define CURL_TYPEOF_CURL_OFF_T __int64
|
||||
# define CURL_FORMAT_CURL_OFF_T "I64d"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "I64u"
|
||||
# define CURL_SUFFIX_CURL_OFF_T i64
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ui64
|
||||
# else
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# endif
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T int
|
||||
|
||||
#elif defined(__LCC__)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 4
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T int
|
||||
|
||||
#elif defined(__SYMBIAN32__)
|
||||
# if defined(__EABI__) /* Treat all ARM compilers equally */
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# elif defined(__CW32__)
|
||||
# pragma longlong on
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# elif defined(__VC32__)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T __int64
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURL_TYPEOF_CURL_OFF_T __int64
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# endif
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T unsigned int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T unsigned int
|
||||
|
||||
#elif defined(__MWERKS__)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T int
|
||||
|
||||
#elif defined(_WIN32_WCE)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T __int64
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "I64d"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "I64u"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T i64
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ui64
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_OFF_T __int64
|
||||
# define CURL_FORMAT_CURL_OFF_T "I64d"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "I64u"
|
||||
# define CURL_SUFFIX_CURL_OFF_T i64
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ui64
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T int
|
||||
|
||||
#elif defined(__MINGW32__)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "I64d"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "I64u"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURLSYS_PULL_SYS_TYPES_H 1
|
||||
# define CURLSYS_PULL_WS2TCPIP_H 1
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "I64d"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "I64u"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURL_PULL_SYS_TYPES_H 1
|
||||
# define CURL_PULL_WS2TCPIP_H 1
|
||||
|
||||
#elif defined(__VMS)
|
||||
# if defined(__VAX)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 4
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# else
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# endif
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T unsigned int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T unsigned int
|
||||
|
||||
#elif defined(__OS400__)
|
||||
# if defined(__ILEC400__)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURLSYS_PULL_SYS_TYPES_H 1
|
||||
# define CURLSYS_PULL_SYS_SOCKET_H 1
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURL_PULL_SYS_TYPES_H 1
|
||||
# define CURL_PULL_SYS_SOCKET_H 1
|
||||
# endif
|
||||
|
||||
#elif defined(__MVS__)
|
||||
# if defined(__IBMC__) || defined(__IBMCPP__)
|
||||
# if defined(_ILP32)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# elif defined(_LP64)
|
||||
# define CURLSYS_SIZEOF_LONG 8
|
||||
# endif
|
||||
# if defined(_LONG_LONG)
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# elif defined(_LP64)
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# else
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 4
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# endif
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURLSYS_PULL_SYS_TYPES_H 1
|
||||
# define CURLSYS_PULL_SYS_SOCKET_H 1
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURL_PULL_SYS_TYPES_H 1
|
||||
# define CURL_PULL_SYS_SOCKET_H 1
|
||||
# endif
|
||||
|
||||
#elif defined(__370__)
|
||||
# if defined(__IBMC__) || defined(__IBMCPP__)
|
||||
# if defined(_ILP32)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# elif defined(_LP64)
|
||||
# define CURLSYS_SIZEOF_LONG 8
|
||||
# endif
|
||||
# if defined(_LONG_LONG)
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# elif defined(_LP64)
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# else
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 4
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# endif
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURLSYS_PULL_SYS_TYPES_H 1
|
||||
# define CURLSYS_PULL_SYS_SOCKET_H 1
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURL_PULL_SYS_TYPES_H 1
|
||||
# define CURL_PULL_SYS_SOCKET_H 1
|
||||
# endif
|
||||
|
||||
#elif defined(TPF)
|
||||
# define CURLSYS_SIZEOF_LONG 8
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T int
|
||||
|
||||
#elif defined(__TINYC__) /* also known as tcc */
|
||||
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURLSYS_PULL_SYS_TYPES_H 1
|
||||
# define CURLSYS_PULL_SYS_SOCKET_H 1
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURL_PULL_SYS_TYPES_H 1
|
||||
# define CURL_PULL_SYS_SOCKET_H 1
|
||||
|
||||
#elif defined(__SUNPRO_C) /* Oracle Solaris Studio */
|
||||
# if !defined(__LP64) && (defined(__ILP32) || \
|
||||
defined(__i386) || defined(__sparcv8))
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# elif defined(__LP64) || \
|
||||
defined(__amd64) || defined(__sparcv9)
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# endif
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURL_PULL_SYS_TYPES_H 1
|
||||
# define CURL_PULL_SYS_SOCKET_H 1
|
||||
|
||||
/* ===================================== */
|
||||
/* KEEP MSVC THE PENULTIMATE ENTRY */
|
||||
@@ -384,101 +324,148 @@
|
||||
|
||||
#elif defined(_MSC_VER)
|
||||
# if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T __int64
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "I64d"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "I64u"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T i64
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ui64
|
||||
# define CURL_TYPEOF_CURL_OFF_T __int64
|
||||
# define CURL_FORMAT_CURL_OFF_T "I64d"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "I64u"
|
||||
# define CURL_SUFFIX_CURL_OFF_T i64
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ui64
|
||||
# else
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 4
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# endif
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T int
|
||||
|
||||
/* ===================================== */
|
||||
/* KEEP GENERIC GCC THE LAST ENTRY */
|
||||
/* ===================================== */
|
||||
|
||||
#elif defined(__GNUC__)
|
||||
# if !defined(__LP64__) && (defined(__ILP32__) || \
|
||||
defined(__i386__) || defined(__ppc__) || defined(__arm__) || \
|
||||
defined(__sparc__) || defined(__mips__) || defined(__sh__))
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T LL
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU ULL
|
||||
# if !defined(__LP64__) && \
|
||||
(defined(__ILP32__) || defined(__i386__) || defined(__hppa__) || \
|
||||
defined(__ppc__) || defined(__powerpc__) || defined(__arm__) || \
|
||||
defined(__sparc__) || defined(__mips__) || defined(__sh__) || \
|
||||
defined(__XTENSA__) || \
|
||||
(defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 4))
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "llu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# elif defined(__LP64__) || \
|
||||
defined(__x86_64__) || defined(__ppc64__) || defined(__sparc64__)
|
||||
# define CURLSYS_SIZEOF_LONG 8
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 8
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
defined(__x86_64__) || defined(__ppc64__) || defined(__sparc64__) || \
|
||||
(defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 8)
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# endif
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURLSYS_PULL_SYS_TYPES_H 1
|
||||
# define CURLSYS_PULL_SYS_SOCKET_H 1
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
|
||||
# define CURL_PULL_SYS_TYPES_H 1
|
||||
# define CURL_PULL_SYS_SOCKET_H 1
|
||||
|
||||
#else
|
||||
/* generic "safe guess" on old 32 bit style */
|
||||
# define CURLSYS_SIZEOF_LONG 4
|
||||
# define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
|
||||
# define CURLSYS_SIZEOF_CURL_OFF_T 4
|
||||
# define CURLSYS_TYPEOF_CURL_OFF_T long
|
||||
# define CURLSYS_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURLSYS_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_T L
|
||||
# define CURLSYS_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
# define CURL_FORMAT_CURL_OFF_TU "lu"
|
||||
# define CURL_SUFFIX_CURL_OFF_T L
|
||||
# define CURL_SUFFIX_CURL_OFF_TU UL
|
||||
# define CURL_TYPEOF_CURL_SOCKLEN_T int
|
||||
#endif
|
||||
|
||||
/* CURLSYS_PULL_WS2TCPIP_H is defined above when inclusion of header file */
|
||||
#ifdef _AIX
|
||||
/* AIX needs <sys/poll.h> */
|
||||
#define CURL_PULL_SYS_POLL_H
|
||||
#endif
|
||||
|
||||
|
||||
/* CURL_PULL_WS2TCPIP_H is defined above when inclusion of header file */
|
||||
/* ws2tcpip.h is required here to properly make type definitions below. */
|
||||
#ifdef CURLSYS_PULL_WS2TCPIP_H
|
||||
# ifndef WIN32_LEAN_AND_MEAN
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# endif
|
||||
# include <windows.h>
|
||||
#ifdef CURL_PULL_WS2TCPIP_H
|
||||
# include <winsock2.h>
|
||||
# include <windows.h>
|
||||
# include <ws2tcpip.h>
|
||||
#endif
|
||||
|
||||
/* CURLSYS_PULL_SYS_TYPES_H is defined above when inclusion of header file */
|
||||
/* CURL_PULL_SYS_TYPES_H is defined above when inclusion of header file */
|
||||
/* sys/types.h is required here to properly make type definitions below. */
|
||||
#ifdef CURLSYS_PULL_SYS_TYPES_H
|
||||
#ifdef CURL_PULL_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
|
||||
/* CURLSYS_PULL_SYS_SOCKET_H is defined above when inclusion of header file */
|
||||
/* CURL_PULL_SYS_SOCKET_H is defined above when inclusion of header file */
|
||||
/* sys/socket.h is required here to properly make type definitions below. */
|
||||
#ifdef CURLSYS_PULL_SYS_SOCKET_H
|
||||
#ifdef CURL_PULL_SYS_SOCKET_H
|
||||
# include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
/* CURL_PULL_SYS_POLL_H is defined above when inclusion of header file */
|
||||
/* sys/poll.h is required here to properly make type definitions below. */
|
||||
#ifdef CURL_PULL_SYS_POLL_H
|
||||
# include <sys/poll.h>
|
||||
#endif
|
||||
|
||||
/* Data type definition of curl_socklen_t. */
|
||||
#ifdef CURLSYS_TYPEOF_CURL_SOCKLEN_T
|
||||
typedef CURLSYS_TYPEOF_CURL_SOCKLEN_T curlsys_socklen_t;
|
||||
#ifdef CURL_TYPEOF_CURL_SOCKLEN_T
|
||||
typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
|
||||
#endif
|
||||
|
||||
/* Data type definition of curl_off_t. */
|
||||
|
||||
#ifdef CURLSYS_TYPEOF_CURL_OFF_T
|
||||
typedef CURLSYS_TYPEOF_CURL_OFF_T curlsys_off_t;
|
||||
#ifdef CURL_TYPEOF_CURL_OFF_T
|
||||
typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* CURL_ISOCPP and CURL_OFF_T_C definitions are done here in order to allow
|
||||
* these to be visible and exported by the external libcurl interface API,
|
||||
* while also making them visible to the library internals, simply including
|
||||
* curl_setup.h, without actually needing to include curl.h internally.
|
||||
* If some day this section would grow big enough, all this should be moved
|
||||
* to its own header file.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Figure out if we can use the ## preprocessor operator, which is supported
|
||||
* by ISO/ANSI C and C++. Some compilers support it without setting __STDC__
|
||||
* or __cplusplus so we need to carefully check for them too.
|
||||
*/
|
||||
|
||||
#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) || \
|
||||
defined(__HP_aCC) || defined(__BORLANDC__) || defined(__LCC__) || \
|
||||
defined(__POCC__) || defined(__SALFORDC__) || defined(__HIGHC__) || \
|
||||
defined(__ILEC400__)
|
||||
/* This compiler is believed to have an ISO compatible preprocessor */
|
||||
#define CURL_ISOCPP
|
||||
#else
|
||||
/* This compiler is believed NOT to have an ISO compatible preprocessor */
|
||||
#undef CURL_ISOCPP
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Macros for minimum-width signed and unsigned curl_off_t integer constants.
|
||||
*/
|
||||
|
||||
#if defined(__BORLANDC__) && (__BORLANDC__ == 0x0551)
|
||||
# define __CURL_OFF_T_C_HLPR2(x) x
|
||||
# define __CURL_OFF_T_C_HLPR1(x) __CURL_OFF_T_C_HLPR2(x)
|
||||
# define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HLPR1(Val) ## \
|
||||
__CURL_OFF_T_C_HLPR1(CURL_SUFFIX_CURL_OFF_T)
|
||||
# define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HLPR1(Val) ## \
|
||||
__CURL_OFF_T_C_HLPR1(CURL_SUFFIX_CURL_OFF_TU)
|
||||
#else
|
||||
# ifdef CURL_ISOCPP
|
||||
# define __CURL_OFF_T_C_HLPR2(Val,Suffix) Val ## Suffix
|
||||
# else
|
||||
# define __CURL_OFF_T_C_HLPR2(Val,Suffix) Val/**/Suffix
|
||||
# endif
|
||||
# define __CURL_OFF_T_C_HLPR1(Val,Suffix) __CURL_OFF_T_C_HLPR2(Val,Suffix)
|
||||
# define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HLPR1(Val,CURL_SUFFIX_CURL_OFF_T)
|
||||
# define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HLPR1(Val,CURL_SUFFIX_CURL_OFF_TU)
|
||||
#endif
|
||||
|
||||
#endif /* __CURL_SYSTEM_H */
|
||||
|
||||
|
||||
@@ -96,6 +96,9 @@ __extension__ ({ \
|
||||
if((_curl_opt) == CURLOPT_HTTPPOST) \
|
||||
if(!_curl_is_arr((value), struct curl_httppost)) \
|
||||
_curl_easy_setopt_err_curl_httpost(); \
|
||||
if((_curl_opt) == CURLOPT_MIMEPOST) \
|
||||
if(!_curl_is_ptr((value), curl_mime)) \
|
||||
_curl_easy_setopt_err_curl_mimepost(); \
|
||||
if(_curl_is_slist_option(_curl_opt)) \
|
||||
if(!_curl_is_arr((value), struct curl_slist)) \
|
||||
_curl_easy_setopt_err_curl_slist(); \
|
||||
@@ -110,7 +113,7 @@ __extension__ ({ \
|
||||
/* FIXME: don't allow const pointers */
|
||||
#define curl_easy_getinfo(handle, info, arg) \
|
||||
__extension__ ({ \
|
||||
__typeof__(info) _curl_info = info; \
|
||||
__typeof__(info) _curl_info = info; \
|
||||
if(__builtin_constant_p(_curl_info)) { \
|
||||
if(_curl_is_string_info(_curl_info)) \
|
||||
if(!_curl_is_arr((arg), char *)) \
|
||||
@@ -130,9 +133,12 @@ __extension__ ({ \
|
||||
if(_curl_is_certinfo_info(_curl_info)) \
|
||||
if(!_curl_is_arr((arg), struct curl_certinfo *)) \
|
||||
_curl_easy_getinfo_err_curl_certinfo(); \
|
||||
if(_curl_is_socket_info(_curl_info)) \
|
||||
if(_curl_is_socket_info(_curl_info)) \
|
||||
if(!_curl_is_arr((arg), curl_socket_t)) \
|
||||
_curl_easy_getinfo_err_curl_socket(); \
|
||||
if(_curl_is_off_t_info(_curl_info)) \
|
||||
if(!_curl_is_arr((arg), curl_off_t)) \
|
||||
_curl_easy_getinfo_err_curl_off_t(); \
|
||||
} \
|
||||
curl_easy_getinfo(handle, _curl_info, arg); \
|
||||
})
|
||||
@@ -197,6 +203,9 @@ _CURL_WARNING(_curl_easy_setopt_err_postfields,
|
||||
_CURL_WARNING(_curl_easy_setopt_err_curl_httpost,
|
||||
"curl_easy_setopt expects a 'struct curl_httppost *' "
|
||||
"argument for this option")
|
||||
_CURL_WARNING(_curl_easy_setopt_err_curl_mimepost,
|
||||
"curl_easy_setopt expects a 'curl_mime *' "
|
||||
"argument for this option")
|
||||
_CURL_WARNING(_curl_easy_setopt_err_curl_slist,
|
||||
"curl_easy_setopt expects a 'struct curl_slist *' argument for this option")
|
||||
_CURL_WARNING(_curl_easy_setopt_err_CURLSH,
|
||||
@@ -218,6 +227,8 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_certinfo,
|
||||
"'struct curl_certinfo *' for this info")
|
||||
_CURL_WARNING(_curl_easy_getinfo_err_curl_socket,
|
||||
"curl_easy_getinfo expects a pointer to curl_socket_t for this info")
|
||||
_CURL_WARNING(_curl_easy_getinfo_err_curl_off_t,
|
||||
"curl_easy_getinfo expects a pointer to curl_off_t for this info")
|
||||
|
||||
/* groups of curl_easy_setops options that take the same type of argument */
|
||||
|
||||
@@ -391,7 +402,11 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_socket,
|
||||
|
||||
/* true if info expects a pointer to struct curl_socket_t argument */
|
||||
#define _curl_is_socket_info(info) \
|
||||
(CURLINFO_SOCKET < (info))
|
||||
(CURLINFO_SOCKET < (info) && (info) < CURLINFO_OFF_T)
|
||||
|
||||
/* true if info expects a pointer to curl_off_t argument */
|
||||
#define _curl_is_off_t_info(info) \
|
||||
(CURLINFO_OFF_T < (info))
|
||||
|
||||
|
||||
/* typecheck helpers -- check whether given expression has requested type*/
|
||||
|
||||
Reference in New Issue
Block a user