build-mac/curl/curlbuild.h
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Tue, 25 Jun 2019 20:27:05 +0200
branchENGINE-581
changeset 3877 cad51de6ba9a
parent 531 a7cc26cc39f2
permissions -rw-r--r--
input check
dirk@531
     1
/* include/curl/curlbuild.h.  Generated from curlbuild.h.in by configure.  */
dirk@531
     2
#ifndef __CURL_CURLBUILD_H
dirk@531
     3
#define __CURL_CURLBUILD_H
dirk@531
     4
/***************************************************************************
dirk@531
     5
 *                                  _   _ ____  _
dirk@531
     6
 *  Project                     ___| | | |  _ \| |
dirk@531
     7
 *                             / __| | | | |_) | |
dirk@531
     8
 *                            | (__| |_| |  _ <| |___
dirk@531
     9
 *                             \___|\___/|_| \_\_____|
dirk@531
    10
 *
dirk@531
    11
 * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
dirk@531
    12
 *
dirk@531
    13
 * This software is licensed as described in the file COPYING, which
dirk@531
    14
 * you should have received as part of this distribution. The terms
dirk@531
    15
 * are also available at https://curl.haxx.se/docs/copyright.html.
dirk@531
    16
 *
dirk@531
    17
 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
dirk@531
    18
 * copies of the Software, and permit persons to whom the Software is
dirk@531
    19
 * furnished to do so, under the terms of the COPYING file.
dirk@531
    20
 *
dirk@531
    21
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
dirk@531
    22
 * KIND, either express or implied.
dirk@531
    23
 *
dirk@531
    24
 ***************************************************************************/
Edouard@340
    25
dirk@531
    26
/* ================================================================ */
dirk@531
    27
/*               NOTES FOR CONFIGURE CAPABLE SYSTEMS                */
dirk@531
    28
/* ================================================================ */
Edouard@340
    29
dirk@531
    30
/*
dirk@531
    31
 * NOTE 1:
dirk@531
    32
 * -------
dirk@531
    33
 *
dirk@531
    34
 * Nothing in this file is intended to be modified or adjusted by the
dirk@531
    35
 * curl library user nor by the curl library builder.
dirk@531
    36
 *
dirk@531
    37
 * If you think that something actually needs to be changed, adjusted
dirk@531
    38
 * or fixed in this file, then, report it on the libcurl development
dirk@531
    39
 * mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
dirk@531
    40
 *
dirk@531
    41
 * This header file shall only export symbols which are 'curl' or 'CURL'
dirk@531
    42
 * prefixed, otherwise public name space would be polluted.
dirk@531
    43
 *
dirk@531
    44
 * NOTE 2:
dirk@531
    45
 * -------
dirk@531
    46
 *
dirk@531
    47
 * Right now you might be staring at file include/curl/curlbuild.h.in or
dirk@531
    48
 * at file include/curl/curlbuild.h, this is due to the following reason:
dirk@531
    49
 *
dirk@531
    50
 * On systems capable of running the configure script, the configure process
dirk@531
    51
 * will overwrite the distributed include/curl/curlbuild.h file with one that
dirk@531
    52
 * is suitable and specific to the library being configured and built, which
dirk@531
    53
 * is generated from the include/curl/curlbuild.h.in template file.
dirk@531
    54
 *
dirk@531
    55
 */
Edouard@340
    56
dirk@531
    57
/* ================================================================ */
dirk@531
    58
/*  DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE  */
dirk@531
    59
/* ================================================================ */
Edouard@340
    60
dirk@531
    61
#ifdef CURL_SIZEOF_LONG
dirk@531
    62
#error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h"
dirk@531
    63
   Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined
Edouard@340
    64
#endif
Edouard@340
    65
dirk@531
    66
#ifdef CURL_TYPEOF_CURL_SOCKLEN_T
dirk@531
    67
#error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
dirk@531
    68
   Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined
dirk@531
    69
#endif
dirk@531
    70
dirk@531
    71
#ifdef CURL_SIZEOF_CURL_SOCKLEN_T
dirk@531
    72
#error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
dirk@531
    73
   Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined
dirk@531
    74
#endif
dirk@531
    75
dirk@531
    76
#ifdef CURL_TYPEOF_CURL_OFF_T
dirk@531
    77
#error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
dirk@531
    78
   Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined
dirk@531
    79
#endif
dirk@531
    80
dirk@531
    81
#ifdef CURL_FORMAT_CURL_OFF_T
dirk@531
    82
#error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h"
dirk@531
    83
   Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined
dirk@531
    84
#endif
dirk@531
    85
dirk@531
    86
#ifdef CURL_FORMAT_CURL_OFF_TU
dirk@531
    87
#error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h"
dirk@531
    88
   Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined
dirk@531
    89
#endif
dirk@531
    90
dirk@531
    91
#ifdef CURL_FORMAT_OFF_T
dirk@531
    92
#error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h"
dirk@531
    93
   Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined
dirk@531
    94
#endif
dirk@531
    95
dirk@531
    96
#ifdef CURL_SIZEOF_CURL_OFF_T
dirk@531
    97
#error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
dirk@531
    98
   Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined
dirk@531
    99
#endif
dirk@531
   100
dirk@531
   101
#ifdef CURL_SUFFIX_CURL_OFF_T
dirk@531
   102
#error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h"
dirk@531
   103
   Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined
dirk@531
   104
#endif
dirk@531
   105
dirk@531
   106
#ifdef CURL_SUFFIX_CURL_OFF_TU
dirk@531
   107
#error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h"
dirk@531
   108
   Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined
dirk@531
   109
#endif
dirk@531
   110
dirk@531
   111
/* ================================================================ */
dirk@531
   112
/*  EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY  */
dirk@531
   113
/* ================================================================ */
dirk@531
   114
dirk@531
   115
/* Configure process defines this to 1 when it finds out that system  */
dirk@531
   116
/* header file ws2tcpip.h must be included by the external interface. */
dirk@531
   117
/* #undef CURL_PULL_WS2TCPIP_H */
dirk@531
   118
#ifdef CURL_PULL_WS2TCPIP_H
dirk@531
   119
#  ifndef WIN32_LEAN_AND_MEAN
dirk@531
   120
#    define WIN32_LEAN_AND_MEAN
dirk@531
   121
#  endif
dirk@531
   122
#  include <windows.h>
dirk@531
   123
#  include <winsock2.h>
dirk@531
   124
#  include <ws2tcpip.h>
dirk@531
   125
#endif
dirk@531
   126
dirk@531
   127
/* Configure process defines this to 1 when it finds out that system   */
dirk@531
   128
/* header file sys/types.h must be included by the external interface. */
dirk@531
   129
#define CURL_PULL_SYS_TYPES_H 1
dirk@531
   130
#ifdef CURL_PULL_SYS_TYPES_H
dirk@531
   131
#  include <sys/types.h>
dirk@531
   132
#endif
dirk@531
   133
dirk@531
   134
/* Configure process defines this to 1 when it finds out that system */
dirk@531
   135
/* header file stdint.h must be included by the external interface.  */
dirk@531
   136
#ifdef __LP64__
dirk@531
   137
/* #undef CURL_PULL_STDINT_H */
dirk@531
   138
#else
dirk@531
   139
#define CURL_PULL_STDINT_H 1
dirk@531
   140
#endif
dirk@531
   141
#ifdef CURL_PULL_STDINT_H
dirk@531
   142
#  include <stdint.h>
dirk@531
   143
#endif
dirk@531
   144
dirk@531
   145
/* Configure process defines this to 1 when it finds out that system  */
dirk@531
   146
/* header file inttypes.h must be included by the external interface. */
dirk@531
   147
#ifdef __LP64__
dirk@531
   148
/* #undef CURL_PULL_INTTYPES_H */
dirk@531
   149
#else
dirk@531
   150
#define CURL_PULL_INTTYPES_H 1
dirk@531
   151
#endif
dirk@531
   152
#ifdef CURL_PULL_INTTYPES_H
dirk@531
   153
#  include <inttypes.h>
dirk@531
   154
#endif
dirk@531
   155
dirk@531
   156
/* Configure process defines this to 1 when it finds out that system    */
dirk@531
   157
/* header file sys/socket.h must be included by the external interface. */
dirk@531
   158
#define CURL_PULL_SYS_SOCKET_H 1
dirk@531
   159
#ifdef CURL_PULL_SYS_SOCKET_H
dirk@531
   160
#  include <sys/socket.h>
dirk@531
   161
#endif
dirk@531
   162
dirk@531
   163
/* Configure process defines this to 1 when it finds out that system  */
dirk@531
   164
/* header file sys/poll.h must be included by the external interface. */
dirk@531
   165
/* #undef CURL_PULL_SYS_POLL_H */
dirk@531
   166
#ifdef CURL_PULL_SYS_POLL_H
dirk@531
   167
#  include <sys/poll.h>
dirk@531
   168
#endif
dirk@531
   169
dirk@531
   170
/* The size of `long', as computed by sizeof. */
dirk@531
   171
#ifdef __LP64__
dirk@531
   172
#define CURL_SIZEOF_LONG 8
dirk@531
   173
#else
dirk@531
   174
#define CURL_SIZEOF_LONG 4
dirk@531
   175
#endif
dirk@531
   176
dirk@531
   177
/* Integral data type used for curl_socklen_t. */
dirk@531
   178
#define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
dirk@531
   179
dirk@531
   180
/* The size of `curl_socklen_t', as computed by sizeof. */
dirk@531
   181
#define CURL_SIZEOF_CURL_SOCKLEN_T 4
dirk@531
   182
dirk@531
   183
/* Data type definition of curl_socklen_t. */
dirk@531
   184
typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
dirk@531
   185
dirk@531
   186
/* Signed integral data type used for curl_off_t. */
dirk@531
   187
#ifdef __LP64__
dirk@531
   188
#define CURL_TYPEOF_CURL_OFF_T long
dirk@531
   189
#else
dirk@531
   190
#define CURL_TYPEOF_CURL_OFF_T int64_t
dirk@531
   191
#endif
dirk@531
   192
dirk@531
   193
/* Data type definition of curl_off_t. */
dirk@531
   194
typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
dirk@531
   195
dirk@531
   196
/* curl_off_t formatting string directive without "%" conversion specifier. */
dirk@531
   197
#ifdef __LP64__
dirk@531
   198
#define CURL_FORMAT_CURL_OFF_T "ld"
dirk@531
   199
#else
dirk@531
   200
#define CURL_FORMAT_CURL_OFF_T "lld"
dirk@531
   201
#endif
dirk@531
   202
dirk@531
   203
/* unsigned curl_off_t formatting string without "%" conversion specifier. */
dirk@531
   204
#ifdef __LP64__
dirk@531
   205
#define CURL_FORMAT_CURL_OFF_TU "lu"
dirk@531
   206
#else
dirk@531
   207
#define CURL_FORMAT_CURL_OFF_TU "llu"
dirk@531
   208
#endif
dirk@531
   209
dirk@531
   210
/* curl_off_t formatting string directive with "%" conversion specifier. */
dirk@531
   211
#ifdef __LP64__
dirk@531
   212
#define CURL_FORMAT_OFF_T "%ld"
dirk@531
   213
#else
dirk@531
   214
#define CURL_FORMAT_OFF_T "%lld"
dirk@531
   215
#endif
dirk@531
   216
dirk@531
   217
/* The size of `curl_off_t', as computed by sizeof. */
dirk@531
   218
#define CURL_SIZEOF_CURL_OFF_T 8
dirk@531
   219
dirk@531
   220
/* curl_off_t constant suffix. */
dirk@531
   221
#ifdef __LP64__
dirk@531
   222
#define CURL_SUFFIX_CURL_OFF_T L
dirk@531
   223
#else
dirk@531
   224
#define CURL_SUFFIX_CURL_OFF_T LL
dirk@531
   225
#endif
dirk@531
   226
dirk@531
   227
/* unsigned curl_off_t constant suffix. */
dirk@531
   228
#ifdef __LP64__
dirk@531
   229
#define CURL_SUFFIX_CURL_OFF_TU UL
dirk@531
   230
#else
dirk@531
   231
#define CURL_SUFFIX_CURL_OFF_TU ULL
dirk@531
   232
#endif
dirk@531
   233
dirk@531
   234
#endif /* __CURL_CURLBUILD_H */