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