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