source: UsbWattMeter/trunk/curl-7.47.1/lib/config-win32.h@ 164

Last change on this file since 164 was 164, checked in by coas-nagasima, 6 years ago

TOPPERS/ECNLサンプルアプリ「USB充電器電力計」を追加

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