Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 1 | #ifndef HEADER_CURL_CONFIG_WIN32_H |
| 2 | #define HEADER_CURL_CONFIG_WIN32_H |
| 3 | /*************************************************************************** |
| 4 | * _ _ ____ _ |
| 5 | * Project ___| | | | _ \| | |
| 6 | * / __| | | | |_) | | |
| 7 | * | (__| |_| | _ <| |___ |
| 8 | * \___|\___/|_| \_\_____| |
| 9 | * |
Elliott Hughes | cac3980 | 2018-04-27 16:19:43 -0700 | [diff] [blame] | 10 | * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 11 | * |
| 12 | * This software is licensed as described in the file COPYING, which |
| 13 | * you should have received as part of this distribution. The terms |
Alex Deymo | 8f1a214 | 2016-06-28 14:49:26 -0700 | [diff] [blame] | 14 | * are also available at https://curl.haxx.se/docs/copyright.html. |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 15 | * |
| 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell |
| 17 | * copies of the Software, and permit persons to whom the Software is |
| 18 | * furnished to do so, under the terms of the COPYING file. |
| 19 | * |
| 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 21 | * KIND, either express or implied. |
| 22 | * |
| 23 | ***************************************************************************/ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 24 | |
| 25 | /* ================================================================ */ |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 26 | /* Hand crafted config file for Windows */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 27 | /* ================================================================ */ |
| 28 | |
| 29 | /* ---------------------------------------------------------------- */ |
| 30 | /* HEADER FILES */ |
| 31 | /* ---------------------------------------------------------------- */ |
| 32 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 33 | /* Define if you have the <arpa/inet.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 34 | /* #define HAVE_ARPA_INET_H 1 */ |
| 35 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 36 | /* Define if you have the <assert.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 37 | #define HAVE_ASSERT_H 1 |
| 38 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 39 | /* Define if you have the <crypto.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 40 | /* #define HAVE_CRYPTO_H 1 */ |
| 41 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 42 | /* Define if you have the <errno.h> header file. */ |
| 43 | #define HAVE_ERRNO_H 1 |
| 44 | |
| 45 | /* Define if you have the <err.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 46 | /* #define HAVE_ERR_H 1 */ |
| 47 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 48 | /* Define if you have the <fcntl.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 49 | #define HAVE_FCNTL_H 1 |
| 50 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 51 | /* Define if you have the <getopt.h> header file. */ |
| 52 | #if defined(__MINGW32__) || defined(__POCC__) |
| 53 | #define HAVE_GETOPT_H 1 |
| 54 | #endif |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 55 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 56 | /* Define to 1 if you have the <inttypes.h> header file. */ |
| 57 | #if defined(_MSC_VER) && (_MSC_VER >= 1800) |
| 58 | #define HAVE_INTTYPES_H 1 |
| 59 | #endif |
| 60 | |
| 61 | /* Define if you have the <io.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 62 | #define HAVE_IO_H 1 |
| 63 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 64 | /* Define if you have the <locale.h> header file. */ |
| 65 | #define HAVE_LOCALE_H 1 |
| 66 | |
| 67 | /* Define if you need <malloc.h> header even with <stdlib.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 68 | #if !defined(__SALFORDC__) && !defined(__POCC__) |
| 69 | #define NEED_MALLOC_H 1 |
| 70 | #endif |
| 71 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 72 | /* Define if you have the <netdb.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 73 | /* #define HAVE_NETDB_H 1 */ |
| 74 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 75 | /* Define if you have the <netinet/in.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 76 | /* #define HAVE_NETINET_IN_H 1 */ |
| 77 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 78 | /* Define if you have the <process.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 79 | #ifndef __SALFORDC__ |
| 80 | #define HAVE_PROCESS_H 1 |
| 81 | #endif |
| 82 | |
| 83 | /* Define if you have the <signal.h> header file. */ |
| 84 | #define HAVE_SIGNAL_H 1 |
| 85 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 86 | /* Define if you have the <sgtty.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 87 | /* #define HAVE_SGTTY_H 1 */ |
| 88 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 89 | /* Define if you have the <ssl.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 90 | /* #define HAVE_SSL_H 1 */ |
| 91 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 92 | /* Define to 1 if you have the <stdbool.h> header file. */ |
| 93 | #if defined(_MSC_VER) && (_MSC_VER >= 1800) |
| 94 | #define HAVE_STDBOOL_H 1 |
| 95 | #endif |
| 96 | |
| 97 | /* Define if you have the <stdlib.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 98 | #define HAVE_STDLIB_H 1 |
| 99 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 100 | /* Define if you have the <sys/param.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 101 | /* #define HAVE_SYS_PARAM_H 1 */ |
| 102 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 103 | /* Define if you have the <sys/select.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 104 | /* #define HAVE_SYS_SELECT_H 1 */ |
| 105 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 106 | /* Define if you have the <sys/socket.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 107 | /* #define HAVE_SYS_SOCKET_H 1 */ |
| 108 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 109 | /* Define if you have the <sys/sockio.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 110 | /* #define HAVE_SYS_SOCKIO_H 1 */ |
| 111 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 112 | /* Define if you have the <sys/stat.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 113 | #define HAVE_SYS_STAT_H 1 |
| 114 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 115 | /* Define if you have the <sys/time.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 116 | /* #define HAVE_SYS_TIME_H 1 */ |
| 117 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 118 | /* Define if you have the <sys/types.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 119 | #define HAVE_SYS_TYPES_H 1 |
| 120 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 121 | /* Define if you have the <sys/utime.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 122 | #ifndef __BORLANDC__ |
| 123 | #define HAVE_SYS_UTIME_H 1 |
| 124 | #endif |
| 125 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 126 | /* Define if you have the <termio.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 127 | /* #define HAVE_TERMIO_H 1 */ |
| 128 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 129 | /* Define if you have the <termios.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 130 | /* #define HAVE_TERMIOS_H 1 */ |
| 131 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 132 | /* Define if you have the <time.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 133 | #define HAVE_TIME_H 1 |
| 134 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 135 | /* Define if you have the <unistd.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 136 | #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \ |
| 137 | defined(__POCC__) |
| 138 | #define HAVE_UNISTD_H 1 |
| 139 | #endif |
| 140 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 141 | /* Define if you have the <windows.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 142 | #define HAVE_WINDOWS_H 1 |
| 143 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 144 | /* Define if you have the <winsock.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 145 | #define HAVE_WINSOCK_H 1 |
| 146 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 147 | /* Define if you have the <winsock2.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 148 | #ifndef __SALFORDC__ |
| 149 | #define HAVE_WINSOCK2_H 1 |
| 150 | #endif |
| 151 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 152 | /* Define if you have the <ws2tcpip.h> header file. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 153 | #ifndef __SALFORDC__ |
| 154 | #define HAVE_WS2TCPIP_H 1 |
| 155 | #endif |
| 156 | |
| 157 | /* ---------------------------------------------------------------- */ |
| 158 | /* OTHER HEADER INFO */ |
| 159 | /* ---------------------------------------------------------------- */ |
| 160 | |
| 161 | /* Define if sig_atomic_t is an available typedef. */ |
| 162 | #define HAVE_SIG_ATOMIC_T 1 |
| 163 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 164 | /* Define if you have the ANSI C header files. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 165 | #define STDC_HEADERS 1 |
| 166 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 167 | /* Define if you can safely include both <sys/time.h> and <time.h>. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 168 | /* #define TIME_WITH_SYS_TIME 1 */ |
| 169 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 170 | /* Define to 1 if bool is an available type. */ |
| 171 | #if defined(_MSC_VER) && (_MSC_VER >= 1800) |
| 172 | #define HAVE_BOOL_T 1 |
| 173 | #endif |
| 174 | |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 175 | /* ---------------------------------------------------------------- */ |
| 176 | /* FUNCTIONS */ |
| 177 | /* ---------------------------------------------------------------- */ |
| 178 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 179 | /* Define if you have the closesocket function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 180 | #define HAVE_CLOSESOCKET 1 |
| 181 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 182 | /* Define if you don't have vprintf but do have _doprnt. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 183 | /* #define HAVE_DOPRNT 1 */ |
| 184 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 185 | /* Define if you have the ftruncate function. */ |
| 186 | #define HAVE_FTRUNCATE 1 |
| 187 | |
| 188 | /* Define if you have the gethostbyaddr function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 189 | #define HAVE_GETHOSTBYADDR 1 |
| 190 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 191 | /* Define if you have the gethostname function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 192 | #define HAVE_GETHOSTNAME 1 |
| 193 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 194 | /* Define if you have the getpass function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 195 | /* #define HAVE_GETPASS 1 */ |
| 196 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 197 | /* Define if you have the getservbyname function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 198 | #define HAVE_GETSERVBYNAME 1 |
| 199 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 200 | /* Define if you have the getprotobyname function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 201 | #define HAVE_GETPROTOBYNAME |
| 202 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 203 | /* Define if you have the gettimeofday function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 204 | /* #define HAVE_GETTIMEOFDAY 1 */ |
| 205 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 206 | /* Define if you have the inet_addr function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 207 | #define HAVE_INET_ADDR 1 |
| 208 | |
| 209 | /* Define if you have the ioctlsocket function. */ |
| 210 | #define HAVE_IOCTLSOCKET 1 |
| 211 | |
| 212 | /* Define if you have a working ioctlsocket FIONBIO function. */ |
| 213 | #define HAVE_IOCTLSOCKET_FIONBIO 1 |
| 214 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 215 | /* Define if you have the perror function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 216 | #define HAVE_PERROR 1 |
| 217 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 218 | /* Define if you have the RAND_screen function when using SSL. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 219 | #define HAVE_RAND_SCREEN 1 |
| 220 | |
| 221 | /* Define if you have the `RAND_status' function when using SSL. */ |
| 222 | #define HAVE_RAND_STATUS 1 |
| 223 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 224 | /* Define if you have the `CRYPTO_cleanup_all_ex_data' function. |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 225 | This is present in OpenSSL versions after 0.9.6b */ |
| 226 | #define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1 |
| 227 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 228 | /* Define if you have the select function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 229 | #define HAVE_SELECT 1 |
| 230 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 231 | /* Define if you have the setlocale function. */ |
| 232 | #define HAVE_SETLOCALE 1 |
| 233 | |
| 234 | /* Define if you have the setmode function. */ |
| 235 | #define HAVE_SETMODE 1 |
| 236 | |
| 237 | /* Define if you have the setvbuf function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 238 | #define HAVE_SETVBUF 1 |
| 239 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 240 | /* Define if you have the socket function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 241 | #define HAVE_SOCKET 1 |
| 242 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 243 | /* Define if you have the strcasecmp function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 244 | /* #define HAVE_STRCASECMP 1 */ |
| 245 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 246 | /* Define if you have the strdup function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 247 | #define HAVE_STRDUP 1 |
| 248 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 249 | /* Define if you have the strftime function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 250 | #define HAVE_STRFTIME 1 |
| 251 | |
| 252 | /* Define if you have the stricmp function. */ |
| 253 | #define HAVE_STRICMP 1 |
| 254 | |
| 255 | /* Define if you have the strncasecmp function. */ |
| 256 | /* #define HAVE_STRNCASECMP 1 */ |
| 257 | |
| 258 | /* Define if you have the strnicmp function. */ |
| 259 | #define HAVE_STRNICMP 1 |
| 260 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 261 | /* Define if you have the strstr function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 262 | #define HAVE_STRSTR 1 |
| 263 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 264 | /* Define if you have the strtoll function. */ |
| 265 | #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__POCC__) || \ |
| 266 | (defined(_MSC_VER) && (_MSC_VER >= 1800)) |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 267 | #define HAVE_STRTOLL 1 |
| 268 | #endif |
| 269 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 270 | /* Define if you have the tcgetattr function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 271 | /* #define HAVE_TCGETATTR 1 */ |
| 272 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 273 | /* Define if you have the tcsetattr function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 274 | /* #define HAVE_TCSETATTR 1 */ |
| 275 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 276 | /* Define if you have the utime function. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 277 | #ifndef __BORLANDC__ |
| 278 | #define HAVE_UTIME 1 |
| 279 | #endif |
| 280 | |
| 281 | /* Define to the type qualifier of arg 1 for getnameinfo. */ |
| 282 | #define GETNAMEINFO_QUAL_ARG1 const |
| 283 | |
| 284 | /* Define to the type of arg 1 for getnameinfo. */ |
| 285 | #define GETNAMEINFO_TYPE_ARG1 struct sockaddr * |
| 286 | |
| 287 | /* Define to the type of arg 2 for getnameinfo. */ |
| 288 | #define GETNAMEINFO_TYPE_ARG2 socklen_t |
| 289 | |
| 290 | /* Define to the type of args 4 and 6 for getnameinfo. */ |
| 291 | #define GETNAMEINFO_TYPE_ARG46 DWORD |
| 292 | |
| 293 | /* Define to the type of arg 7 for getnameinfo. */ |
| 294 | #define GETNAMEINFO_TYPE_ARG7 int |
| 295 | |
| 296 | /* Define if you have the recv function. */ |
| 297 | #define HAVE_RECV 1 |
| 298 | |
| 299 | /* Define to the type of arg 1 for recv. */ |
| 300 | #define RECV_TYPE_ARG1 SOCKET |
| 301 | |
| 302 | /* Define to the type of arg 2 for recv. */ |
| 303 | #define RECV_TYPE_ARG2 char * |
| 304 | |
| 305 | /* Define to the type of arg 3 for recv. */ |
| 306 | #define RECV_TYPE_ARG3 int |
| 307 | |
| 308 | /* Define to the type of arg 4 for recv. */ |
| 309 | #define RECV_TYPE_ARG4 int |
| 310 | |
| 311 | /* Define to the function return type for recv. */ |
| 312 | #define RECV_TYPE_RETV int |
| 313 | |
| 314 | /* Define if you have the recvfrom function. */ |
| 315 | #define HAVE_RECVFROM 1 |
| 316 | |
| 317 | /* Define to the type of arg 1 for recvfrom. */ |
| 318 | #define RECVFROM_TYPE_ARG1 SOCKET |
| 319 | |
| 320 | /* Define to the type pointed by arg 2 for recvfrom. */ |
| 321 | #define RECVFROM_TYPE_ARG2 char |
| 322 | |
| 323 | /* Define to the type of arg 3 for recvfrom. */ |
| 324 | #define RECVFROM_TYPE_ARG3 int |
| 325 | |
| 326 | /* Define to the type of arg 4 for recvfrom. */ |
| 327 | #define RECVFROM_TYPE_ARG4 int |
| 328 | |
| 329 | /* Define to the type pointed by arg 5 for recvfrom. */ |
| 330 | #define RECVFROM_TYPE_ARG5 struct sockaddr |
| 331 | |
| 332 | /* Define to the type pointed by arg 6 for recvfrom. */ |
| 333 | #define RECVFROM_TYPE_ARG6 int |
| 334 | |
| 335 | /* Define to the function return type for recvfrom. */ |
| 336 | #define RECVFROM_TYPE_RETV int |
| 337 | |
| 338 | /* Define if you have the send function. */ |
| 339 | #define HAVE_SEND 1 |
| 340 | |
| 341 | /* Define to the type of arg 1 for send. */ |
| 342 | #define SEND_TYPE_ARG1 SOCKET |
| 343 | |
| 344 | /* Define to the type qualifier of arg 2 for send. */ |
| 345 | #define SEND_QUAL_ARG2 const |
| 346 | |
| 347 | /* Define to the type of arg 2 for send. */ |
| 348 | #define SEND_TYPE_ARG2 char * |
| 349 | |
| 350 | /* Define to the type of arg 3 for send. */ |
| 351 | #define SEND_TYPE_ARG3 int |
| 352 | |
| 353 | /* Define to the type of arg 4 for send. */ |
| 354 | #define SEND_TYPE_ARG4 int |
| 355 | |
| 356 | /* Define to the function return type for send. */ |
| 357 | #define SEND_TYPE_RETV int |
| 358 | |
| 359 | /* ---------------------------------------------------------------- */ |
| 360 | /* TYPEDEF REPLACEMENTS */ |
| 361 | /* ---------------------------------------------------------------- */ |
| 362 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 363 | /* Define if in_addr_t is not an available 'typedefed' type. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 364 | #define in_addr_t unsigned long |
| 365 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 366 | /* Define to the return type of signal handlers (int or void). */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 367 | #define RETSIGTYPE void |
| 368 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 369 | /* Define if ssize_t is not an available 'typedefed' type. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 370 | #ifndef _SSIZE_T_DEFINED |
| 371 | # if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || \ |
| 372 | defined(__POCC__) || \ |
| 373 | defined(__MINGW32__) |
| 374 | # elif defined(_WIN64) |
| 375 | # define _SSIZE_T_DEFINED |
| 376 | # define ssize_t __int64 |
| 377 | # else |
| 378 | # define _SSIZE_T_DEFINED |
| 379 | # define ssize_t int |
| 380 | # endif |
| 381 | #endif |
| 382 | |
| 383 | /* ---------------------------------------------------------------- */ |
| 384 | /* TYPE SIZES */ |
| 385 | /* ---------------------------------------------------------------- */ |
| 386 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 387 | /* Define to the size of `int', as computed by sizeof. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 388 | #define SIZEOF_INT 4 |
| 389 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 390 | /* Define to the size of `long double', as computed by sizeof. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 391 | #define SIZEOF_LONG_DOUBLE 16 |
| 392 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 393 | /* Define to the size of `long long', as computed by sizeof. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 394 | /* #define SIZEOF_LONG_LONG 8 */ |
| 395 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 396 | /* Define to the size of `short', as computed by sizeof. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 397 | #define SIZEOF_SHORT 2 |
| 398 | |
Alex Deymo | 486467e | 2017-12-19 19:04:07 +0100 | [diff] [blame] | 399 | /* Define to the size of `long', as computed by sizeof. */ |
| 400 | #define SIZEOF_LONG 4 |
| 401 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 402 | /* Define to the size of `size_t', as computed by sizeof. */ |
| 403 | #if defined(_WIN64) |
| 404 | # define SIZEOF_SIZE_T 8 |
| 405 | #else |
| 406 | # define SIZEOF_SIZE_T 4 |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 407 | #endif |
| 408 | |
Alex Deymo | 486467e | 2017-12-19 19:04:07 +0100 | [diff] [blame] | 409 | /* Define to the size of `curl_off_t', as computed by sizeof. */ |
| 410 | #define SIZEOF_CURL_OFF_T 8 |
| 411 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 412 | /* ---------------------------------------------------------------- */ |
| 413 | /* BSD-style lwIP TCP/IP stack SPECIFIC */ |
| 414 | /* ---------------------------------------------------------------- */ |
| 415 | |
| 416 | /* Define to use BSD-style lwIP TCP/IP stack. */ |
| 417 | /* #define USE_LWIPSOCK 1 */ |
| 418 | |
| 419 | #ifdef USE_LWIPSOCK |
| 420 | # undef USE_WINSOCK |
| 421 | # undef HAVE_WINSOCK_H |
| 422 | # undef HAVE_WINSOCK2_H |
| 423 | # undef HAVE_WS2TCPIP_H |
| 424 | # undef HAVE_ERRNO_H |
| 425 | # undef HAVE_GETHOSTNAME |
| 426 | # undef HAVE_GETNAMEINFO |
| 427 | # undef LWIP_POSIX_SOCKETS_IO_NAMES |
| 428 | # undef RECV_TYPE_ARG1 |
| 429 | # undef RECV_TYPE_ARG3 |
| 430 | # undef SEND_TYPE_ARG1 |
| 431 | # undef SEND_TYPE_ARG3 |
| 432 | # define HAVE_FREEADDRINFO |
| 433 | # define HAVE_GETADDRINFO |
| 434 | # define HAVE_GETHOSTBYNAME |
| 435 | # define HAVE_GETHOSTBYNAME_R |
| 436 | # define HAVE_GETHOSTBYNAME_R_6 |
| 437 | # define LWIP_POSIX_SOCKETS_IO_NAMES 0 |
| 438 | # define RECV_TYPE_ARG1 int |
| 439 | # define RECV_TYPE_ARG3 size_t |
| 440 | # define SEND_TYPE_ARG1 int |
| 441 | # define SEND_TYPE_ARG3 size_t |
| 442 | #endif |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 443 | |
| 444 | /* ---------------------------------------------------------------- */ |
| 445 | /* Watt-32 tcp/ip SPECIFIC */ |
| 446 | /* ---------------------------------------------------------------- */ |
| 447 | |
| 448 | #ifdef USE_WATT32 |
| 449 | #include <tcp.h> |
| 450 | #undef byte |
| 451 | #undef word |
| 452 | #undef USE_WINSOCK |
| 453 | #undef HAVE_WINSOCK_H |
| 454 | #undef HAVE_WINSOCK2_H |
| 455 | #undef HAVE_WS2TCPIP_H |
| 456 | #define HAVE_GETADDRINFO |
| 457 | #define HAVE_GETNAMEINFO |
| 458 | #define HAVE_SYS_IOCTL_H |
| 459 | #define HAVE_SYS_SOCKET_H |
| 460 | #define HAVE_NETINET_IN_H |
| 461 | #define HAVE_NETDB_H |
| 462 | #define HAVE_ARPA_INET_H |
| 463 | #define HAVE_FREEADDRINFO |
| 464 | #define SOCKET int |
| 465 | #endif |
| 466 | |
| 467 | |
| 468 | /* ---------------------------------------------------------------- */ |
| 469 | /* COMPILER SPECIFIC */ |
| 470 | /* ---------------------------------------------------------------- */ |
| 471 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 472 | /* Define to nothing if compiler does not support 'const' qualifier. */ |
| 473 | /* #define const */ |
| 474 | |
| 475 | /* Define to nothing if compiler does not support 'volatile' qualifier. */ |
| 476 | /* #define volatile */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 477 | |
| 478 | /* Windows should not have HAVE_GMTIME_R defined */ |
| 479 | /* #undef HAVE_GMTIME_R */ |
| 480 | |
| 481 | /* Define if the compiler supports C99 variadic macro style. */ |
| 482 | #if defined(_MSC_VER) && (_MSC_VER >= 1400) |
| 483 | #define HAVE_VARIADIC_MACROS_C99 1 |
| 484 | #endif |
| 485 | |
| 486 | /* Define if the compiler supports the 'long long' data type. */ |
Alex Deymo | 8f1a214 | 2016-06-28 14:49:26 -0700 | [diff] [blame] | 487 | #if defined(__MINGW32__) || defined(__WATCOMC__) || \ |
| 488 | (defined(_MSC_VER) && (_MSC_VER >= 1310)) || \ |
| 489 | (defined(__BORLANDC__) && (__BORLANDC__ >= 0x561)) |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 490 | #define HAVE_LONGLONG 1 |
| 491 | #endif |
| 492 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 493 | /* Define to avoid VS2005 complaining about portable C functions. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 494 | #if defined(_MSC_VER) && (_MSC_VER >= 1400) |
| 495 | #define _CRT_SECURE_NO_DEPRECATE 1 |
| 496 | #define _CRT_NONSTDC_NO_DEPRECATE 1 |
| 497 | #endif |
| 498 | |
Elliott Hughes | 82be86d | 2017-09-20 17:00:17 -0700 | [diff] [blame] | 499 | /* VS2005 and later default size for time_t is 64-bit, unless |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 500 | _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 501 | #if defined(_MSC_VER) && (_MSC_VER >= 1400) |
| 502 | # ifndef _USE_32BIT_TIME_T |
| 503 | # define SIZEOF_TIME_T 8 |
| 504 | # else |
| 505 | # define SIZEOF_TIME_T 4 |
| 506 | # endif |
| 507 | #endif |
| 508 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 509 | /* Define some minimum and default build targets for Visual Studio */ |
| 510 | #if defined(_MSC_VER) |
| 511 | /* Officially, Microsoft's Windows SDK versions 6.X does not support Windows |
| 512 | 2000 as a supported build target. VS2008 default installations provides |
| 513 | an embedded Windows SDK v6.0A along with the claim that Windows 2000 is a |
| 514 | valid build target for VS2008. Popular belief is that binaries built with |
| 515 | VS2008 using Windows SDK versions v6.X and Windows 2000 as a build target |
| 516 | are functional. */ |
| 517 | # define VS2008_MIN_TARGET 0x0500 |
| 518 | |
| 519 | /* The minimum build target for VS2012 is Vista unless Update 1 is installed |
Elliott Hughes | 82be86d | 2017-09-20 17:00:17 -0700 | [diff] [blame] | 520 | and the v110_xp toolset is chosen. */ |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 521 | # if defined(_USING_V110_SDK71_) |
| 522 | # define VS2012_MIN_TARGET 0x0501 |
| 523 | # else |
| 524 | # define VS2012_MIN_TARGET 0x0600 |
| 525 | # endif |
| 526 | |
| 527 | /* VS2008 default build target is Windows Vista. We override default target |
| 528 | to be Windows XP. */ |
| 529 | # define VS2008_DEF_TARGET 0x0501 |
| 530 | |
| 531 | /* VS2012 default build target is Windows Vista unless Update 1 is installed |
Elliott Hughes | 82be86d | 2017-09-20 17:00:17 -0700 | [diff] [blame] | 532 | and the v110_xp toolset is chosen. */ |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 533 | # if defined(_USING_V110_SDK71_) |
| 534 | # define VS2012_DEF_TARGET 0x0501 |
| 535 | # else |
| 536 | # define VS2012_DEF_TARGET 0x0600 |
| 537 | # endif |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 538 | #endif |
| 539 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 540 | /* VS2008 default target settings and minimum build target check. */ |
| 541 | #if defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER <= 1600) |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 542 | # ifndef _WIN32_WINNT |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 543 | # define _WIN32_WINNT VS2008_DEF_TARGET |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 544 | # endif |
| 545 | # ifndef WINVER |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 546 | # define WINVER VS2008_DEF_TARGET |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 547 | # endif |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 548 | # if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET) |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 549 | # error VS2008 does not support Windows build targets prior to Windows 2000 |
| 550 | # endif |
| 551 | #endif |
| 552 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 553 | /* VS2012 default target settings and minimum build target check. */ |
| 554 | #if defined(_MSC_VER) && (_MSC_VER >= 1700) |
| 555 | # ifndef _WIN32_WINNT |
| 556 | # define _WIN32_WINNT VS2012_DEF_TARGET |
| 557 | # endif |
| 558 | # ifndef WINVER |
| 559 | # define WINVER VS2012_DEF_TARGET |
| 560 | # endif |
| 561 | # if (_WIN32_WINNT < VS2012_MIN_TARGET) || (WINVER < VS2012_MIN_TARGET) |
| 562 | # if defined(_USING_V110_SDK71_) |
| 563 | # error VS2012 does not support Windows build targets prior to Windows XP |
| 564 | # else |
| 565 | # error VS2012 does not support Windows build targets prior to Windows \ |
| 566 | Vista |
| 567 | # endif |
| 568 | # endif |
| 569 | #endif |
| 570 | |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 571 | /* When no build target is specified Pelles C 5.00 and later default build |
| 572 | target is Windows Vista. We override default target to be Windows 2000. */ |
| 573 | #if defined(__POCC__) && (__POCC__ >= 500) |
| 574 | # ifndef _WIN32_WINNT |
| 575 | # define _WIN32_WINNT 0x0500 |
| 576 | # endif |
| 577 | # ifndef WINVER |
| 578 | # define WINVER 0x0500 |
| 579 | # endif |
| 580 | #endif |
| 581 | |
| 582 | /* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is |
| 583 | quite convoluted, compiler dependent and even build target dependent. */ |
| 584 | #if defined(HAVE_WS2TCPIP_H) |
| 585 | # if defined(__POCC__) |
| 586 | # define HAVE_FREEADDRINFO 1 |
| 587 | # define HAVE_GETADDRINFO 1 |
| 588 | # define HAVE_GETADDRINFO_THREADSAFE 1 |
| 589 | # define HAVE_GETNAMEINFO 1 |
| 590 | # elif defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501) |
| 591 | # define HAVE_FREEADDRINFO 1 |
| 592 | # define HAVE_GETADDRINFO 1 |
| 593 | # define HAVE_GETADDRINFO_THREADSAFE 1 |
| 594 | # define HAVE_GETNAMEINFO 1 |
| 595 | # elif defined(_MSC_VER) && (_MSC_VER >= 1200) |
| 596 | # define HAVE_FREEADDRINFO 1 |
| 597 | # define HAVE_GETADDRINFO 1 |
| 598 | # define HAVE_GETADDRINFO_THREADSAFE 1 |
| 599 | # define HAVE_GETNAMEINFO 1 |
| 600 | # endif |
| 601 | #endif |
| 602 | |
| 603 | #if defined(__POCC__) |
| 604 | # ifndef _MSC_VER |
| 605 | # error Microsoft extensions /Ze compiler option is required |
| 606 | # endif |
| 607 | # ifndef __POCC__OLDNAMES |
| 608 | # error Compatibility names /Go compiler option is required |
| 609 | # endif |
| 610 | #endif |
| 611 | |
| 612 | /* ---------------------------------------------------------------- */ |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 613 | /* STRUCT RELATED */ |
| 614 | /* ---------------------------------------------------------------- */ |
| 615 | |
| 616 | /* Define if you have struct sockaddr_storage. */ |
| 617 | #if !defined(__SALFORDC__) && !defined(__BORLANDC__) |
| 618 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
| 619 | #endif |
| 620 | |
| 621 | /* Define if you have struct timeval. */ |
| 622 | #define HAVE_STRUCT_TIMEVAL 1 |
| 623 | |
| 624 | /* Define if struct sockaddr_in6 has the sin6_scope_id member. */ |
| 625 | #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 626 | |
Alex Deymo | 8f1a214 | 2016-06-28 14:49:26 -0700 | [diff] [blame] | 627 | #if defined(HAVE_WINSOCK2_H) && defined(_WIN32_WINNT) && \ |
| 628 | (_WIN32_WINNT >= 0x0600) |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 629 | #define HAVE_STRUCT_POLLFD 1 |
| 630 | #endif |
| 631 | |
| 632 | /* ---------------------------------------------------------------- */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 633 | /* LARGE FILE SUPPORT */ |
| 634 | /* ---------------------------------------------------------------- */ |
| 635 | |
| 636 | #if defined(_MSC_VER) && !defined(_WIN32_WCE) |
| 637 | # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64) |
| 638 | # define USE_WIN32_LARGE_FILES |
| 639 | # else |
| 640 | # define USE_WIN32_SMALL_FILES |
| 641 | # endif |
| 642 | #endif |
| 643 | |
| 644 | #if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES) |
| 645 | # define USE_WIN32_LARGE_FILES |
| 646 | #endif |
| 647 | |
| 648 | #if defined(__WATCOMC__) && !defined(USE_WIN32_LARGE_FILES) |
| 649 | # define USE_WIN32_LARGE_FILES |
| 650 | #endif |
| 651 | |
| 652 | #if defined(__POCC__) |
| 653 | # undef USE_WIN32_LARGE_FILES |
| 654 | #endif |
| 655 | |
| 656 | #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES) |
| 657 | # define USE_WIN32_SMALL_FILES |
| 658 | #endif |
| 659 | |
| 660 | /* ---------------------------------------------------------------- */ |
| 661 | /* DNS RESOLVER SPECIALTY */ |
| 662 | /* ---------------------------------------------------------------- */ |
| 663 | |
| 664 | /* |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 665 | * Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS. |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 666 | */ |
| 667 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 668 | /* Define to enable c-ares asynchronous DNS lookups. */ |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 669 | /* #define USE_ARES 1 */ |
| 670 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 671 | /* Default define to enable threaded asynchronous DNS lookups. */ |
| 672 | #if !defined(USE_SYNC_DNS) && !defined(USE_ARES) && \ |
| 673 | !defined(USE_THREADS_WIN32) |
| 674 | # define USE_THREADS_WIN32 1 |
| 675 | #endif |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 676 | |
| 677 | #if defined(USE_ARES) && defined(USE_THREADS_WIN32) |
| 678 | # error "Only one DNS lookup specialty may be defined at most" |
| 679 | #endif |
| 680 | |
| 681 | /* ---------------------------------------------------------------- */ |
| 682 | /* LDAP SUPPORT */ |
| 683 | /* ---------------------------------------------------------------- */ |
| 684 | |
| 685 | #if defined(CURL_HAS_NOVELL_LDAPSDK) || defined(CURL_HAS_MOZILLA_LDAPSDK) |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 686 | #undef USE_WIN32_LDAP |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 687 | #define HAVE_LDAP_SSL_H 1 |
| 688 | #define HAVE_LDAP_URL_PARSE 1 |
| 689 | #elif defined(CURL_HAS_OPENLDAP_LDAPSDK) |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 690 | #undef USE_WIN32_LDAP |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 691 | #define HAVE_LDAP_URL_PARSE 1 |
| 692 | #else |
| 693 | #undef HAVE_LDAP_URL_PARSE |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 694 | #define USE_WIN32_LDAP 1 |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 695 | #endif |
| 696 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 697 | #if defined(__WATCOMC__) && defined(USE_WIN32_LDAP) |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 698 | #if __WATCOMC__ < 1280 |
| 699 | #define WINBERAPI __declspec(cdecl) |
| 700 | #define WINLDAPAPI __declspec(cdecl) |
| 701 | #endif |
| 702 | #endif |
| 703 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 704 | #if defined(__POCC__) && defined(USE_WIN32_LDAP) |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 705 | # define CURL_DISABLE_LDAP 1 |
| 706 | #endif |
| 707 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 708 | /* Define to use the Windows crypto library. */ |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 709 | #define USE_WIN32_CRYPTO |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 710 | |
Elliott Hughes | cac3980 | 2018-04-27 16:19:43 -0700 | [diff] [blame] | 711 | /* Define to use Unix sockets. */ |
| 712 | #if defined(_MSC_VER) && _MSC_VER >= 1900 |
| 713 | /* #define USE_UNIX_SOCKETS */ |
| 714 | #endif |
| 715 | |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 716 | /* ---------------------------------------------------------------- */ |
| 717 | /* ADDITIONAL DEFINITIONS */ |
| 718 | /* ---------------------------------------------------------------- */ |
| 719 | |
| 720 | /* Define cpu-machine-OS */ |
| 721 | #undef OS |
| 722 | #if defined(_M_IX86) || defined(__i386__) /* x86 (MSVC or gcc) */ |
| 723 | #define OS "i386-pc-win32" |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 724 | #elif defined(_M_X64) || defined(__x86_64__) /* x86_64 (MSVC >=2005 or gcc) */ |
| 725 | #define OS "x86_64-pc-win32" |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 726 | #elif defined(_M_IA64) /* Itanium */ |
| 727 | #define OS "ia64-pc-win32" |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 728 | #else |
| 729 | #define OS "unknown-pc-win32" |
| 730 | #endif |
| 731 | |
| 732 | /* Name of package */ |
| 733 | #define PACKAGE "curl" |
| 734 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 735 | /* If you want to build curl with the built-in manual */ |
| 736 | #define USE_MANUAL 1 |
| 737 | |
Alex Deymo | 8f1a214 | 2016-06-28 14:49:26 -0700 | [diff] [blame] | 738 | #if defined(__POCC__) || defined(USE_IPV6) |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 739 | # define ENABLE_IPV6 1 |
| 740 | #endif |
| 741 | |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 742 | #endif /* HEADER_CURL_CONFIG_WIN32_H */ |