| 1 | #ifndef HEADER_CURL_CONFIG_WIN32_H
|
|---|
| 2 | #define HEADER_CURL_CONFIG_WIN32_H
|
|---|
| 3 | /***************************************************************************
|
|---|
| 4 | * _ _ ____ _
|
|---|
| 5 | * Project ___| | | | _ \| |
|
|---|
| 6 | * / __| | | | |_) | |
|
|---|
| 7 | * | (__| |_| | _ <| |___
|
|---|
| 8 | * \___|\___/|_| \_\_____|
|
|---|
| 9 | *
|
|---|
| 10 | * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
|
|---|
| 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
|
|---|
| 14 | * are also available at http://curl.haxx.se/docs/copyright.html.
|
|---|
| 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 | ***************************************************************************/
|
|---|
| 24 |
|
|---|
| 25 | /* ================================================================ */
|
|---|
| 26 | /* Hand crafted config file for Windows */
|
|---|
| 27 | /* ================================================================ */
|
|---|
| 28 |
|
|---|
| 29 | /* ---------------------------------------------------------------- */
|
|---|
| 30 | /* HEADER FILES */
|
|---|
| 31 | /* ---------------------------------------------------------------- */
|
|---|
| 32 |
|
|---|
| 33 | /* Begin VBox specific */
|
|---|
| 34 | #define CURL_DISABLE_LDAP 1
|
|---|
| 35 | #define CURL_DISABLE_DICT 1
|
|---|
| 36 | #define CURL_DISABLE_TFTP 1
|
|---|
| 37 |
|
|---|
| 38 | /* to make a symbol visible */
|
|---|
| 39 | #define CURL_EXTERN_SYMBOL 1
|
|---|
| 40 |
|
|---|
| 41 | /* to enable hidden symbols */
|
|---|
| 42 | /* #undef CURL_HIDDEN_SYMBOLS */
|
|---|
| 43 |
|
|---|
| 44 | /* if zlib is available */
|
|---|
| 45 | #define HAVE_LIBZ 1
|
|---|
| 46 | /* if you have the zlib.h header file */
|
|---|
| 47 | #define HAVE_ZLIB_H 1
|
|---|
| 48 | /* End VBox specific */
|
|---|
| 49 |
|
|---|
| 50 | /* Define if you have the <arpa/inet.h> header file. */
|
|---|
| 51 | /* #define HAVE_ARPA_INET_H 1 */
|
|---|
| 52 |
|
|---|
| 53 | /* Define if you have the <assert.h> header file. */
|
|---|
| 54 | #define HAVE_ASSERT_H 1
|
|---|
| 55 |
|
|---|
| 56 | /* Define if you have the <crypto.h> header file. */
|
|---|
| 57 | /* #define HAVE_CRYPTO_H 1 */
|
|---|
| 58 |
|
|---|
| 59 | /* Define if you have the <err.h> header file. */
|
|---|
| 60 | /* #define HAVE_ERR_H 1 */
|
|---|
| 61 |
|
|---|
| 62 | /* Define if you have the <fcntl.h> header file. */
|
|---|
| 63 | #define HAVE_FCNTL_H 1
|
|---|
| 64 |
|
|---|
| 65 | /* Define if you have the <getopt.h> header file. */
|
|---|
| 66 | /* #define HAVE_GETOPT_H 1 */
|
|---|
| 67 |
|
|---|
| 68 | /* Define if you have the <io.h> header file. */
|
|---|
| 69 | #define HAVE_IO_H 1
|
|---|
| 70 |
|
|---|
| 71 | /* Define if you need the malloc.h header file even with stdlib.h */
|
|---|
| 72 | #ifndef __SALFORDC__
|
|---|
| 73 | #define NEED_MALLOC_H 1
|
|---|
| 74 | #endif
|
|---|
| 75 |
|
|---|
| 76 | /* Define if you have the <netdb.h> header file. */
|
|---|
| 77 | /* #define HAVE_NETDB_H 1 */
|
|---|
| 78 |
|
|---|
| 79 | /* Define if you have the <netinet/in.h> header file. */
|
|---|
| 80 | /* #define HAVE_NETINET_IN_H 1 */
|
|---|
| 81 |
|
|---|
| 82 | /* Define if you have the <process.h> header file. */
|
|---|
| 83 | #ifndef __SALFORDC__
|
|---|
| 84 | #define HAVE_PROCESS_H 1
|
|---|
| 85 | #endif
|
|---|
| 86 |
|
|---|
| 87 | /* Define if you have the <signal.h> header file. */
|
|---|
| 88 | #define HAVE_SIGNAL_H 1
|
|---|
| 89 |
|
|---|
| 90 | /* Define if you have the <sgtty.h> header file. */
|
|---|
| 91 | /* #define HAVE_SGTTY_H 1 */
|
|---|
| 92 |
|
|---|
| 93 | /* Define if you have the <ssl.h> header file. */
|
|---|
| 94 | /* #define HAVE_SSL_H 1 */
|
|---|
| 95 |
|
|---|
| 96 | /* Define if you have the <stdlib.h> header file. */
|
|---|
| 97 | #define HAVE_STDLIB_H 1
|
|---|
| 98 |
|
|---|
| 99 | /* Define if you have the <sys/param.h> header file. */
|
|---|
| 100 | /* #define HAVE_SYS_PARAM_H 1 */
|
|---|
| 101 |
|
|---|
| 102 | /* Define if you have the <sys/select.h> header file. */
|
|---|
| 103 | /* #define HAVE_SYS_SELECT_H 1 */
|
|---|
| 104 |
|
|---|
| 105 | /* Define if you have the <sys/socket.h> header file. */
|
|---|
| 106 | /* #define HAVE_SYS_SOCKET_H 1 */
|
|---|
| 107 |
|
|---|
| 108 | /* Define if you have the <sys/sockio.h> header file. */
|
|---|
| 109 | /* #define HAVE_SYS_SOCKIO_H 1 */
|
|---|
| 110 |
|
|---|
| 111 | /* Define if you have the <sys/stat.h> header file. */
|
|---|
| 112 | #define HAVE_SYS_STAT_H 1
|
|---|
| 113 |
|
|---|
| 114 | /* Define if you have the <sys/time.h> header file. */
|
|---|
| 115 | /* #define HAVE_SYS_TIME_H 1 */
|
|---|
| 116 |
|
|---|
| 117 | /* Define if you have the <sys/types.h> header file. */
|
|---|
| 118 | #define HAVE_SYS_TYPES_H 1
|
|---|
| 119 |
|
|---|
| 120 | /* Define if you have the <sys/utime.h> header file. */
|
|---|
| 121 | #ifndef __BORLANDC__
|
|---|
| 122 | #define HAVE_SYS_UTIME_H 1
|
|---|
| 123 | #endif
|
|---|
| 124 |
|
|---|
| 125 | /* Define if you have the <termio.h> header file. */
|
|---|
| 126 | /* #define HAVE_TERMIO_H 1 */
|
|---|
| 127 |
|
|---|
| 128 | /* Define if you have the <termios.h> header file. */
|
|---|
| 129 | /* #define HAVE_TERMIOS_H 1 */
|
|---|
| 130 |
|
|---|
| 131 | /* Define if you have the <time.h> header file. */
|
|---|
| 132 | #define HAVE_TIME_H 1
|
|---|
| 133 |
|
|---|
| 134 | /* Define if you have the <unistd.h> header file. */
|
|---|
| 135 | #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
|
|---|
| 136 | defined(__POCC__)
|
|---|
| 137 | #define HAVE_UNISTD_H 1
|
|---|
| 138 | #endif
|
|---|
| 139 |
|
|---|
| 140 | /* Define if you have the <windows.h> header file. */
|
|---|
| 141 | #define HAVE_WINDOWS_H 1
|
|---|
| 142 |
|
|---|
| 143 | /* Define if you have the <winsock.h> header file. */
|
|---|
| 144 | #define HAVE_WINSOCK_H 1
|
|---|
| 145 |
|
|---|
| 146 | #ifndef __SALFORDC__
|
|---|
| 147 | /* Define if you have the <winsock2.h> header file. */
|
|---|
| 148 | #define HAVE_WINSOCK2_H 1
|
|---|
| 149 |
|
|---|
| 150 | /* Define if you have the <ws2tcpip.h> header file. */
|
|---|
| 151 | #define HAVE_WS2TCPIP_H 1
|
|---|
| 152 | #endif
|
|---|
| 153 |
|
|---|
| 154 | /* ---------------------------------------------------------------- */
|
|---|
| 155 | /* OTHER HEADER INFO */
|
|---|
| 156 | /* ---------------------------------------------------------------- */
|
|---|
| 157 |
|
|---|
| 158 | /* Define if sig_atomic_t is an available typedef. */
|
|---|
| 159 | #define HAVE_SIG_ATOMIC_T 1
|
|---|
| 160 |
|
|---|
| 161 | /* Define if you have the ANSI C header files. */
|
|---|
| 162 | #define STDC_HEADERS 1
|
|---|
| 163 |
|
|---|
| 164 | /* Define if you can safely include both <sys/time.h> and <time.h>. */
|
|---|
| 165 | /* #define TIME_WITH_SYS_TIME 1 */
|
|---|
| 166 |
|
|---|
| 167 | /* ---------------------------------------------------------------- */
|
|---|
| 168 | /* FUNCTIONS */
|
|---|
| 169 | /* ---------------------------------------------------------------- */
|
|---|
| 170 |
|
|---|
| 171 | /* Define if you have the closesocket function. */
|
|---|
| 172 | #define HAVE_CLOSESOCKET 1
|
|---|
| 173 |
|
|---|
| 174 | /* Define if you don't have vprintf but do have _doprnt. */
|
|---|
| 175 | /* #define HAVE_DOPRNT 1 */
|
|---|
| 176 |
|
|---|
| 177 | /* Define if you have the gethostbyaddr function. */
|
|---|
| 178 | #define HAVE_GETHOSTBYADDR 1
|
|---|
| 179 |
|
|---|
| 180 | /* Define if you have the gethostname function. */
|
|---|
| 181 | #define HAVE_GETHOSTNAME 1
|
|---|
| 182 |
|
|---|
| 183 | /* Define if you have the getpass function. */
|
|---|
| 184 | /* #define HAVE_GETPASS 1 */
|
|---|
| 185 |
|
|---|
| 186 | /* Define if you have the getservbyname function. */
|
|---|
| 187 | #define HAVE_GETSERVBYNAME 1
|
|---|
| 188 |
|
|---|
| 189 | /* Define if you have the getprotobyname function. */
|
|---|
| 190 | #define HAVE_GETPROTOBYNAME
|
|---|
| 191 |
|
|---|
| 192 | /* Define if you have the gettimeofday function. */
|
|---|
| 193 | /* #define HAVE_GETTIMEOFDAY 1 */
|
|---|
| 194 |
|
|---|
| 195 | /* Define if you have the inet_addr function. */
|
|---|
| 196 | #define HAVE_INET_ADDR 1
|
|---|
| 197 |
|
|---|
| 198 | /* Define if you have the ioctlsocket function. */
|
|---|
| 199 | #define HAVE_IOCTLSOCKET 1
|
|---|
| 200 |
|
|---|
| 201 | /* Define if you have a working ioctlsocket FIONBIO function. */
|
|---|
| 202 | #define HAVE_IOCTLSOCKET_FIONBIO 1
|
|---|
| 203 |
|
|---|
| 204 | /* Define if you have the perror function. */
|
|---|
| 205 | #define HAVE_PERROR 1
|
|---|
| 206 |
|
|---|
| 207 | /* Define if you have the RAND_screen function when using SSL */
|
|---|
| 208 | #define HAVE_RAND_SCREEN 1
|
|---|
| 209 |
|
|---|
| 210 | /* Define if you have the `RAND_status' function when using SSL. */
|
|---|
| 211 | #define HAVE_RAND_STATUS 1
|
|---|
| 212 |
|
|---|
| 213 | /* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function.
|
|---|
| 214 | This is present in OpenSSL versions after 0.9.6b */
|
|---|
| 215 | #define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1
|
|---|
| 216 |
|
|---|
| 217 | /* Define if you have the select function. */
|
|---|
| 218 | #define HAVE_SELECT 1
|
|---|
| 219 |
|
|---|
| 220 | /* Define if you have the setvbuf function. */
|
|---|
| 221 | #define HAVE_SETVBUF 1
|
|---|
| 222 |
|
|---|
| 223 | /* Define if you have the socket function. */
|
|---|
| 224 | #define HAVE_SOCKET 1
|
|---|
| 225 |
|
|---|
| 226 | /* Define if you have the strcasecmp function. */
|
|---|
| 227 | /* #define HAVE_STRCASECMP 1 */
|
|---|
| 228 |
|
|---|
| 229 | /* Define if you have the strdup function. */
|
|---|
| 230 | #define HAVE_STRDUP 1
|
|---|
| 231 |
|
|---|
| 232 | /* Define if you have the strftime function. */
|
|---|
| 233 | #define HAVE_STRFTIME 1
|
|---|
| 234 |
|
|---|
| 235 | /* Define if you have the stricmp function. */
|
|---|
| 236 | #define HAVE_STRICMP 1
|
|---|
| 237 |
|
|---|
| 238 | /* Define if you have the strncasecmp function. */
|
|---|
| 239 | /* #define HAVE_STRNCASECMP 1 */
|
|---|
| 240 |
|
|---|
| 241 | /* Define if you have the strnicmp function. */
|
|---|
| 242 | #define HAVE_STRNICMP 1
|
|---|
| 243 |
|
|---|
| 244 | /* Define if you have the strstr function. */
|
|---|
| 245 | #define HAVE_STRSTR 1
|
|---|
| 246 |
|
|---|
| 247 | /* Define if you have the strtoll function. */
|
|---|
| 248 | #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__POCC__)
|
|---|
| 249 | #define HAVE_STRTOLL 1
|
|---|
| 250 | #endif
|
|---|
| 251 |
|
|---|
| 252 | /* Define if you have the tcgetattr function. */
|
|---|
| 253 | /* #define HAVE_TCGETATTR 1 */
|
|---|
| 254 |
|
|---|
| 255 | /* Define if you have the tcsetattr function. */
|
|---|
| 256 | /* #define HAVE_TCSETATTR 1 */
|
|---|
| 257 |
|
|---|
| 258 | /* Define if you have the utime function */
|
|---|
| 259 | #ifndef __BORLANDC__
|
|---|
| 260 | #define HAVE_UTIME 1
|
|---|
| 261 | #endif
|
|---|
| 262 |
|
|---|
| 263 | /* Define to the type qualifier of arg 1 for getnameinfo. */
|
|---|
| 264 | #define GETNAMEINFO_QUAL_ARG1 const
|
|---|
| 265 |
|
|---|
| 266 | /* Define to the type of arg 1 for getnameinfo. */
|
|---|
| 267 | #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
|
|---|
| 268 |
|
|---|
| 269 | /* Define to the type of arg 2 for getnameinfo. */
|
|---|
| 270 | #define GETNAMEINFO_TYPE_ARG2 socklen_t
|
|---|
| 271 |
|
|---|
| 272 | /* Define to the type of args 4 and 6 for getnameinfo. */
|
|---|
| 273 | #define GETNAMEINFO_TYPE_ARG46 DWORD
|
|---|
| 274 |
|
|---|
| 275 | /* Define to the type of arg 7 for getnameinfo. */
|
|---|
| 276 | #define GETNAMEINFO_TYPE_ARG7 int
|
|---|
| 277 |
|
|---|
| 278 | /* Define if you have the recv function. */
|
|---|
| 279 | #define HAVE_RECV 1
|
|---|
| 280 |
|
|---|
| 281 | /* Define to the type of arg 1 for recv. */
|
|---|
| 282 | #define RECV_TYPE_ARG1 SOCKET
|
|---|
| 283 |
|
|---|
| 284 | /* Define to the type of arg 2 for recv. */
|
|---|
| 285 | #define RECV_TYPE_ARG2 char *
|
|---|
| 286 |
|
|---|
| 287 | /* Define to the type of arg 3 for recv. */
|
|---|
| 288 | #define RECV_TYPE_ARG3 int
|
|---|
| 289 |
|
|---|
| 290 | /* Define to the type of arg 4 for recv. */
|
|---|
| 291 | #define RECV_TYPE_ARG4 int
|
|---|
| 292 |
|
|---|
| 293 | /* Define to the function return type for recv. */
|
|---|
| 294 | #define RECV_TYPE_RETV int
|
|---|
| 295 |
|
|---|
| 296 | /* Define if you have the recvfrom function. */
|
|---|
| 297 | #define HAVE_RECVFROM 1
|
|---|
| 298 |
|
|---|
| 299 | /* Define to the type of arg 1 for recvfrom. */
|
|---|
| 300 | #define RECVFROM_TYPE_ARG1 SOCKET
|
|---|
| 301 |
|
|---|
| 302 | /* Define to the type pointed by arg 2 for recvfrom. */
|
|---|
| 303 | #define RECVFROM_TYPE_ARG2 char
|
|---|
| 304 |
|
|---|
| 305 | /* Define to the type of arg 3 for recvfrom. */
|
|---|
| 306 | #define RECVFROM_TYPE_ARG3 int
|
|---|
| 307 |
|
|---|
| 308 | /* Define to the type of arg 4 for recvfrom. */
|
|---|
| 309 | #define RECVFROM_TYPE_ARG4 int
|
|---|
| 310 |
|
|---|
| 311 | /* Define to the type pointed by arg 5 for recvfrom. */
|
|---|
| 312 | #define RECVFROM_TYPE_ARG5 struct sockaddr
|
|---|
| 313 |
|
|---|
| 314 | /* Define to the type pointed by arg 6 for recvfrom. */
|
|---|
| 315 | #define RECVFROM_TYPE_ARG6 int
|
|---|
| 316 |
|
|---|
| 317 | /* Define to the function return type for recvfrom. */
|
|---|
| 318 | #define RECVFROM_TYPE_RETV int
|
|---|
| 319 |
|
|---|
| 320 | /* Define if you have the send function. */
|
|---|
| 321 | #define HAVE_SEND 1
|
|---|
| 322 |
|
|---|
| 323 | /* Define to the type of arg 1 for send. */
|
|---|
| 324 | #define SEND_TYPE_ARG1 SOCKET
|
|---|
| 325 |
|
|---|
| 326 | /* Define to the type qualifier of arg 2 for send. */
|
|---|
| 327 | #define SEND_QUAL_ARG2 const
|
|---|
| 328 |
|
|---|
| 329 | /* Define to the type of arg 2 for send. */
|
|---|
| 330 | #define SEND_TYPE_ARG2 char *
|
|---|
| 331 |
|
|---|
| 332 | /* Define to the type of arg 3 for send. */
|
|---|
| 333 | #define SEND_TYPE_ARG3 int
|
|---|
| 334 |
|
|---|
| 335 | /* Define to the type of arg 4 for send. */
|
|---|
| 336 | #define SEND_TYPE_ARG4 int
|
|---|
| 337 |
|
|---|
| 338 | /* Define to the function return type for send. */
|
|---|
| 339 | #define SEND_TYPE_RETV int
|
|---|
| 340 |
|
|---|
| 341 | /* ---------------------------------------------------------------- */
|
|---|
| 342 | /* TYPEDEF REPLACEMENTS */
|
|---|
| 343 | /* ---------------------------------------------------------------- */
|
|---|
| 344 |
|
|---|
| 345 | /* Define this if in_addr_t is not an available 'typedefed' type */
|
|---|
| 346 | #define in_addr_t unsigned long
|
|---|
| 347 |
|
|---|
| 348 | /* Define as the return type of signal handlers (int or void). */
|
|---|
| 349 | #define RETSIGTYPE void
|
|---|
| 350 |
|
|---|
| 351 | #ifndef _SSIZE_T_DEFINED
|
|---|
| 352 | #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__) || \
|
|---|
| 353 | defined(__MINGW32__)
|
|---|
| 354 | #elif defined(_WIN64)
|
|---|
| 355 | #define ssize_t __int64
|
|---|
| 356 | #else
|
|---|
| 357 | #define ssize_t int
|
|---|
| 358 | #endif
|
|---|
| 359 | #define _SSIZE_T_DEFINED
|
|---|
| 360 | #endif
|
|---|
| 361 |
|
|---|
| 362 | /* ---------------------------------------------------------------- */
|
|---|
| 363 | /* TYPE SIZES */
|
|---|
| 364 | /* ---------------------------------------------------------------- */
|
|---|
| 365 |
|
|---|
| 366 | /* Define to the size of `int', as computed by sizeof. */
|
|---|
| 367 | #define SIZEOF_INT 4
|
|---|
| 368 |
|
|---|
| 369 | /* Define to the size of `long double', as computed by sizeof. */
|
|---|
| 370 | #define SIZEOF_LONG_DOUBLE 16
|
|---|
| 371 |
|
|---|
| 372 | /* Define to the size of `long long', as computed by sizeof. */
|
|---|
| 373 | /* #define SIZEOF_LONG_LONG 8 */
|
|---|
| 374 |
|
|---|
| 375 | /* Define to the size of `short', as computed by sizeof. */
|
|---|
| 376 | #define SIZEOF_SHORT 2
|
|---|
| 377 |
|
|---|
| 378 | /* Define to the size of `size_t', as computed by sizeof. */
|
|---|
| 379 | #if defined(_WIN64)
|
|---|
| 380 | # define SIZEOF_SIZE_T 8
|
|---|
| 381 | #else
|
|---|
| 382 | # define SIZEOF_SIZE_T 4
|
|---|
| 383 | #endif
|
|---|
| 384 |
|
|---|
| 385 | /* ---------------------------------------------------------------- */
|
|---|
| 386 | /* STRUCT RELATED */
|
|---|
| 387 | /* ---------------------------------------------------------------- */
|
|---|
| 388 |
|
|---|
| 389 | /* Define this if you have struct sockaddr_storage */
|
|---|
| 390 | #ifndef __SALFORDC__
|
|---|
| 391 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1
|
|---|
| 392 | #endif
|
|---|
| 393 |
|
|---|
| 394 | /* Define this if you have struct timeval */
|
|---|
| 395 | #define HAVE_STRUCT_TIMEVAL 1
|
|---|
| 396 |
|
|---|
| 397 | /* ---------------------------------------------------------------- */
|
|---|
| 398 | /* Watt-32 tcp/ip SPECIFIC */
|
|---|
| 399 | /* ---------------------------------------------------------------- */
|
|---|
| 400 |
|
|---|
| 401 | #ifdef USE_WATT32
|
|---|
| 402 | #include <tcp.h>
|
|---|
| 403 | #undef byte
|
|---|
| 404 | #undef word
|
|---|
| 405 | #undef USE_WINSOCK
|
|---|
| 406 | #undef HAVE_WINSOCK_H
|
|---|
| 407 | #undef HAVE_WINSOCK2_H
|
|---|
| 408 | #undef HAVE_WS2TCPIP_H
|
|---|
| 409 | #define HAVE_GETADDRINFO
|
|---|
| 410 | #define HAVE_GETNAMEINFO
|
|---|
| 411 | #define HAVE_SYS_IOCTL_H
|
|---|
| 412 | #define HAVE_SYS_SOCKET_H
|
|---|
| 413 | #define HAVE_NETINET_IN_H
|
|---|
| 414 | #define HAVE_NETDB_H
|
|---|
| 415 | #define HAVE_ARPA_INET_H
|
|---|
| 416 | #define HAVE_FREEADDRINFO
|
|---|
| 417 | #define SOCKET int
|
|---|
| 418 | #endif
|
|---|
| 419 |
|
|---|
| 420 |
|
|---|
| 421 | /* ---------------------------------------------------------------- */
|
|---|
| 422 | /* COMPILER SPECIFIC */
|
|---|
| 423 | /* ---------------------------------------------------------------- */
|
|---|
| 424 |
|
|---|
| 425 | /* Undef keyword 'const' if it does not work. */
|
|---|
| 426 | /* #undef const */
|
|---|
| 427 |
|
|---|
| 428 | /* Windows should not have HAVE_GMTIME_R defined */
|
|---|
| 429 | /* #undef HAVE_GMTIME_R */
|
|---|
| 430 |
|
|---|
| 431 | /* Define if the compiler supports C99 variadic macro style. */
|
|---|
| 432 | #if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
|---|
| 433 | #define HAVE_VARIADIC_MACROS_C99 1
|
|---|
| 434 | #endif
|
|---|
| 435 |
|
|---|
| 436 | /* Define if the compiler supports the 'long long' data type. */
|
|---|
| 437 | #if defined(__MINGW32__) || defined(__WATCOMC__)
|
|---|
| 438 | #define HAVE_LONGLONG 1
|
|---|
| 439 | #endif
|
|---|
| 440 |
|
|---|
| 441 | /* Define to avoid VS2005 complaining about portable C functions */
|
|---|
| 442 | #if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
|---|
| 443 | #define _CRT_SECURE_NO_DEPRECATE 1
|
|---|
| 444 | #define _CRT_NONSTDC_NO_DEPRECATE 1
|
|---|
| 445 | #endif
|
|---|
| 446 |
|
|---|
| 447 | /* VS2005 and later dafault size for time_t is 64-bit, unless */
|
|---|
| 448 | /* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
|
|---|
| 449 | #if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
|---|
| 450 | # ifndef _USE_32BIT_TIME_T
|
|---|
| 451 | # define SIZEOF_TIME_T 8
|
|---|
| 452 | # else
|
|---|
| 453 | # define SIZEOF_TIME_T 4
|
|---|
| 454 | # endif
|
|---|
| 455 | #endif
|
|---|
| 456 |
|
|---|
| 457 | /* Officially, Microsoft's Windows SDK versions 6.X do not support Windows
|
|---|
| 458 | 2000 as a supported build target. VS2008 default installations provide an
|
|---|
| 459 | embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
|
|---|
| 460 | valid build target for VS2008. Popular belief is that binaries built using
|
|---|
| 461 | Windows SDK versions 6.X and Windows 2000 as a build target are functional */
|
|---|
| 462 | #if defined(_MSC_VER) && (_MSC_VER >= 1500)
|
|---|
| 463 | # define VS2008_MIN_TARGET 0x0500
|
|---|
| 464 | #endif
|
|---|
| 465 |
|
|---|
| 466 | /* When no build target is specified VS2008 default build target is Windows
|
|---|
| 467 | Vista, which leaves out even Winsows XP. If no build target has been given
|
|---|
| 468 | for VS2008 we will target the minimum Officially supported build target,
|
|---|
| 469 | which happens to be Windows XP. */
|
|---|
| 470 | #if defined(_MSC_VER) && (_MSC_VER >= 1500)
|
|---|
| 471 | # define VS2008_DEF_TARGET 0x0501
|
|---|
| 472 | #endif
|
|---|
| 473 |
|
|---|
| 474 | /* VS2008 default target settings and minimum build target check. */
|
|---|
| 475 | #if defined(_MSC_VER) && (_MSC_VER >= 1500)
|
|---|
| 476 | # ifndef _WIN32_WINNT
|
|---|
| 477 | # define _WIN32_WINNT VS2008_DEF_TARGET
|
|---|
| 478 | # endif
|
|---|
| 479 | # ifndef WINVER
|
|---|
| 480 | # define WINVER VS2008_DEF_TARGET
|
|---|
| 481 | # endif
|
|---|
| 482 | # if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
|
|---|
| 483 | # error VS2008 does not support Windows build targets prior to Windows 2000
|
|---|
| 484 | # endif
|
|---|
| 485 | #endif
|
|---|
| 486 |
|
|---|
| 487 | /* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is
|
|---|
| 488 | quite convoluted, compiler dependant and in some cases even build target
|
|---|
| 489 | dependant. */
|
|---|
| 490 | #if defined(HAVE_WS2TCPIP_H)
|
|---|
| 491 | # if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
|
|---|
| 492 | # define HAVE_FREEADDRINFO 1
|
|---|
| 493 | # define HAVE_GETADDRINFO 1
|
|---|
| 494 | # define HAVE_GETNAMEINFO 1
|
|---|
| 495 | # elif defined(_MSC_VER) && (_MSC_VER >= 1200)
|
|---|
| 496 | # define HAVE_FREEADDRINFO 1
|
|---|
| 497 | # define HAVE_GETADDRINFO 1
|
|---|
| 498 | # define HAVE_GETNAMEINFO 1
|
|---|
| 499 | # endif
|
|---|
| 500 | #endif
|
|---|
| 501 |
|
|---|
| 502 | /* ---------------------------------------------------------------- */
|
|---|
| 503 | /* LARGE FILE SUPPORT */
|
|---|
| 504 | /* ---------------------------------------------------------------- */
|
|---|
| 505 |
|
|---|
| 506 | #if defined(_MSC_VER) && !defined(_WIN32_WCE)
|
|---|
| 507 | # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
|
|---|
| 508 | # define USE_WIN32_LARGE_FILES
|
|---|
| 509 | # else
|
|---|
| 510 | # define USE_WIN32_SMALL_FILES
|
|---|
| 511 | # endif
|
|---|
| 512 | #endif
|
|---|
| 513 |
|
|---|
| 514 | #if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES)
|
|---|
| 515 | # define USE_WIN32_LARGE_FILES
|
|---|
| 516 | #endif
|
|---|
| 517 |
|
|---|
| 518 | #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
|
|---|
| 519 | # define USE_WIN32_SMALL_FILES
|
|---|
| 520 | #endif
|
|---|
| 521 |
|
|---|
| 522 | /* ---------------------------------------------------------------- */
|
|---|
| 523 | /* LDAP SUPPORT */
|
|---|
| 524 | /* ---------------------------------------------------------------- */
|
|---|
| 525 |
|
|---|
| 526 | #if defined(CURL_HAS_NOVELL_LDAPSDK) || defined(CURL_HAS_MOZILLA_LDAPSDK)
|
|---|
| 527 | #undef CURL_LDAP_HYBRID
|
|---|
| 528 | #undef CURL_LDAP_WIN
|
|---|
| 529 | #define HAVE_LDAP_SSL_H 1
|
|---|
| 530 | #define HAVE_LDAP_URL_PARSE 1
|
|---|
| 531 | #elif defined(CURL_HAS_OPENLDAP_LDAPSDK)
|
|---|
| 532 | #undef CURL_LDAP_HYBRID
|
|---|
| 533 | #undef CURL_LDAP_WIN
|
|---|
| 534 | #define HAVE_LDAP_URL_PARSE 1
|
|---|
| 535 | #else
|
|---|
| 536 | #undef CURL_LDAP_HYBRID
|
|---|
| 537 | #undef HAVE_LDAP_URL_PARSE
|
|---|
| 538 | #define CURL_LDAP_WIN 1
|
|---|
| 539 | #endif
|
|---|
| 540 |
|
|---|
| 541 | /* ---------------------------------------------------------------- */
|
|---|
| 542 | /* ADDITIONAL DEFINITIONS */
|
|---|
| 543 | /* ---------------------------------------------------------------- */
|
|---|
| 544 |
|
|---|
| 545 | /* Define cpu-machine-OS */
|
|---|
| 546 | #undef OS
|
|---|
| 547 | #if defined(_M_IX86) || defined(__i386__) /* x86 (MSVC or gcc) */
|
|---|
| 548 | #define OS "i386-pc-win32"
|
|---|
| 549 | #elif defined(_M_IA64) /* Itanium */
|
|---|
| 550 | #define OS "ia64-pc-win32"
|
|---|
| 551 | #elif defined(_M_X64) /* AMD64/EM64T - Not defined until MSVC 2005 */
|
|---|
| 552 | #define OS "amd64-pc-win32"
|
|---|
| 553 | #else
|
|---|
| 554 | #define OS "unknown-pc-win32"
|
|---|
| 555 | #endif
|
|---|
| 556 |
|
|---|
| 557 | /* Name of package */
|
|---|
| 558 | #define PACKAGE "curl"
|
|---|
| 559 |
|
|---|
| 560 | #define USE_OPENSSL
|
|---|
| 561 | #define USE_SSLEAY
|
|---|
| 562 |
|
|---|
| 563 | #endif /* HEADER_CURL_CONFIG_WIN32_H */
|
|---|
| 564 |
|
|---|
| 565 | /* The size of `curl_off_t', as computed by sizeof. */
|
|---|
| 566 | #define SIZEOF_CURL_OFF_T 8
|
|---|
| 567 |
|
|---|
| 568 | /* The size of `long', as computed by sizeof. */
|
|---|
| 569 | #define SIZEOF_LONG 4
|
|---|