]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/lib/curl_setup.h
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / lib / curl_setup.h
1 #ifndef HEADER_CURL_SETUP_H
2 #define HEADER_CURL_SETUP_H
3 /***************************************************************************
4  *                                  _   _ ____  _
5  *  Project                     ___| | | |  _ \| |
6  *                             / __| | | | |_) | |
7  *                            | (__| |_| |  _ <| |___
8  *                             \___|\___/|_| \_\_____|
9  *
10  * Copyright (C) 1998 - 2013, 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  * Define WIN32 when build target is Win32 API
27  */
28
29 #if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32) && \
30     !defined(__SYMBIAN32__)
31 #define WIN32
32 #endif
33
34 /*
35  * Include configuration script results or hand-crafted
36  * configuration file for platforms which lack config tool.
37  */
38
39 #ifdef HAVE_CONFIG_H
40
41 #include "curl_config.h"
42
43 #else /* HAVE_CONFIG_H */
44
45 #ifdef _WIN32_WCE
46 #  include "config-win32ce.h"
47 #else
48 #  ifdef WIN32
49 #    include "config-win32.h"
50 #  endif
51 #endif
52
53 #if defined(macintosh) && defined(__MRC__)
54 #  include "config-mac.h"
55 #endif
56
57 #ifdef __riscos__
58 #  include "config-riscos.h"
59 #endif
60
61 #ifdef __AMIGA__
62 #  include "config-amigaos.h"
63 #endif
64
65 #ifdef __SYMBIAN32__
66 #  include "config-symbian.h"
67 #endif
68
69 #ifdef __OS400__
70 #  include "config-os400.h"
71 #endif
72
73 #ifdef TPF
74 #  include "config-tpf.h"
75 #endif
76
77 #ifdef __VXWORKS__
78 #  include "config-vxworks.h"
79 #endif
80
81 #endif /* HAVE_CONFIG_H */
82
83 /* ================================================================ */
84 /* Definition of preprocessor macros/symbols which modify compiler  */
85 /* behavior or generated code characteristics must be done here,   */
86 /* as appropriate, before any system header file is included. It is */
87 /* also possible to have them defined in the config file included   */
88 /* before this point. As a result of all this we frown inclusion of */
89 /* system header files in our config files, avoid this at any cost. */
90 /* ================================================================ */
91
92 /*
93  * AIX 4.3 and newer needs _THREAD_SAFE defined to build
94  * proper reentrant code. Others may also need it.
95  */
96
97 #ifdef NEED_THREAD_SAFE
98 #  ifndef _THREAD_SAFE
99 #    define _THREAD_SAFE
100 #  endif
101 #endif
102
103 /*
104  * Tru64 needs _REENTRANT set for a few function prototypes and
105  * things to appear in the system header files. Unixware needs it
106  * to build proper reentrant code. Others may also need it.
107  */
108
109 #ifdef NEED_REENTRANT
110 #  ifndef _REENTRANT
111 #    define _REENTRANT
112 #  endif
113 #endif
114
115 /* ================================================================ */
116 /*  If you need to include a system header file for your platform,  */
117 /*  please, do it beyond the point further indicated in this file.  */
118 /* ================================================================ */
119
120 /*
121  * libcurl's external interface definitions are also used internally,
122  * and might also include required system header files to define them.
123  */
124
125 #include <curl/curlbuild.h>
126
127 /*
128  * Compile time sanity checks must also be done when building the library.
129  */
130
131 #include <curl/curlrules.h>
132
133 /*
134  * Ensure that no one is using the old SIZEOF_CURL_OFF_T macro
135  */
136
137 #ifdef SIZEOF_CURL_OFF_T
138 #  error "SIZEOF_CURL_OFF_T shall not be defined!"
139    Error Compilation_aborted_SIZEOF_CURL_OFF_T_shall_not_be_defined
140 #endif
141
142 /*
143  * Set up internal curl_off_t formatting string directives for
144  * exclusive use with libcurl's internal *printf functions.
145  */
146
147 #ifdef FORMAT_OFF_T
148 #  error "FORMAT_OFF_T shall not be defined before this point!"
149    Error Compilation_aborted_FORMAT_OFF_T_already_defined
150 #endif
151
152 #ifdef FORMAT_OFF_TU
153 #  error "FORMAT_OFF_TU shall not be defined before this point!"
154    Error Compilation_aborted_FORMAT_OFF_TU_already_defined
155 #endif
156
157 #if (CURL_SIZEOF_CURL_OFF_T > CURL_SIZEOF_LONG)
158 #  define FORMAT_OFF_T  "lld"
159 #  define FORMAT_OFF_TU "llu"
160 #else
161 #  define FORMAT_OFF_T  "ld"
162 #  define FORMAT_OFF_TU "lu"
163 #endif
164
165 /*
166  * Disable other protocols when http is the only one desired.
167  */
168
169 #ifdef HTTP_ONLY
170 #  ifndef CURL_DISABLE_TFTP
171 #    define CURL_DISABLE_TFTP
172 #  endif
173 #  ifndef CURL_DISABLE_FTP
174 #    define CURL_DISABLE_FTP
175 #  endif
176 #  ifndef CURL_DISABLE_LDAP
177 #    define CURL_DISABLE_LDAP
178 #  endif
179 #  ifndef CURL_DISABLE_TELNET
180 #    define CURL_DISABLE_TELNET
181 #  endif
182 #  ifndef CURL_DISABLE_DICT
183 #    define CURL_DISABLE_DICT
184 #  endif
185 #  ifndef CURL_DISABLE_FILE
186 #    define CURL_DISABLE_FILE
187 #  endif
188 #  ifndef CURL_DISABLE_RTSP
189 #    define CURL_DISABLE_RTSP
190 #  endif
191 #  ifndef CURL_DISABLE_POP3
192 #    define CURL_DISABLE_POP3
193 #  endif
194 #  ifndef CURL_DISABLE_IMAP
195 #    define CURL_DISABLE_IMAP
196 #  endif
197 #  ifndef CURL_DISABLE_SMTP
198 #    define CURL_DISABLE_SMTP
199 #  endif
200 #  ifndef CURL_DISABLE_RTSP
201 #    define CURL_DISABLE_RTSP
202 #  endif
203 #  ifndef CURL_DISABLE_RTMP
204 #    define CURL_DISABLE_RTMP
205 #  endif
206 #  ifndef CURL_DISABLE_GOPHER
207 #    define CURL_DISABLE_GOPHER
208 #  endif
209 #endif
210
211 /*
212  * When http is disabled rtsp is not supported.
213  */
214
215 #if defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_RTSP)
216 #  define CURL_DISABLE_RTSP
217 #endif
218
219 /* ================================================================ */
220 /* No system header file shall be included in this file before this */
221 /* point. The only allowed ones are those included from curlbuild.h */
222 /* ================================================================ */
223
224 /*
225  * OS/400 setup file includes some system headers.
226  */
227
228 #ifdef __OS400__
229 #  include "setup-os400.h"
230 #endif
231
232 /*
233  * VMS setup file includes some system headers.
234  */
235
236 #ifdef __VMS
237 #  include "setup-vms.h"
238 #endif
239
240 /*
241  * Include header files for windows builds before redefining anything.
242  * Use this preprocessor block only to include or exclude windows.h,
243  * winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs
244  * to any other further and independent block.  Under Cygwin things work
245  * just as under linux (e.g. <sys/socket.h>) and the winsock headers should
246  * never be included when __CYGWIN__ is defined.  configure script takes
247  * care of this, not defining HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H,
248  * neither HAVE_WS2TCPIP_H when __CYGWIN__ is defined.
249  */
250
251 #ifdef HAVE_WINDOWS_H
252 #  if defined(UNICODE) && !defined(_UNICODE)
253 #    define _UNICODE
254 #  endif
255 #  if defined(_UNICODE) && !defined(UNICODE)
256 #    define UNICODE
257 #  endif
258 #  ifndef WIN32_LEAN_AND_MEAN
259 #    define WIN32_LEAN_AND_MEAN
260 #  endif
261 #  include <windows.h>
262 #  ifdef HAVE_WINSOCK2_H
263 #    include <winsock2.h>
264 #    ifdef HAVE_WS2TCPIP_H
265 #       include <ws2tcpip.h>
266 #    endif
267 #  else
268 #    ifdef HAVE_WINSOCK_H
269 #      include <winsock.h>
270 #    endif
271 #  endif
272 #  include <tchar.h>
273 #endif
274
275 /*
276  * Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else
277  * define USE_WINSOCK to 1 if we have and use WINSOCK  API, else
278  * undefine USE_WINSOCK.
279  */
280
281 #undef USE_WINSOCK
282
283 #ifdef HAVE_WINSOCK2_H
284 #  define USE_WINSOCK 2
285 #else
286 #  ifdef HAVE_WINSOCK_H
287 #    define USE_WINSOCK 1
288 #  endif
289 #endif
290
291 #ifdef USE_LWIPSOCK
292 #  include <lwip/init.h>
293 #  include <lwip/sockets.h>
294 #  include <lwip/netdb.h>
295 #endif
296
297 #ifdef HAVE_EXTRA_STRICMP_H
298 #  include <extra/stricmp.h>
299 #endif
300
301 #ifdef HAVE_EXTRA_STRDUP_H
302 #  include <extra/strdup.h>
303 #endif
304
305 #ifdef TPF
306 #  include <strings.h>    /* for bzero, strcasecmp, and strncasecmp */
307 #  include <string.h>     /* for strcpy and strlen */
308 #  include <stdlib.h>     /* for rand and srand */
309 #  include <sys/socket.h> /* for select and ioctl*/
310 #  include <netdb.h>      /* for in_addr_t definition */
311 #  include <tpf/sysapi.h> /* for tpf_process_signals */
312    /* change which select is used for libcurl */
313 #  define select(a,b,c,d,e) tpf_select_libcurl(a,b,c,d,e)
314 #endif
315
316 #ifdef __VXWORKS__
317 #  include <sockLib.h>    /* for generic BSD socket functions */
318 #  include <ioLib.h>      /* for basic I/O interface functions */
319 #endif
320
321 #ifdef __AMIGA__
322 #  ifndef __ixemul__
323 #    include <exec/types.h>
324 #    include <exec/execbase.h>
325 #    include <proto/exec.h>
326 #    include <proto/dos.h>
327 #    define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
328 #  endif
329 #endif
330
331 #include <stdio.h>
332 #ifdef HAVE_ASSERT_H
333 #include <assert.h>
334 #endif
335
336 #ifdef __TANDEM /* for nsr-tandem-nsk systems */
337 #include <floss.h>
338 #endif
339
340 #ifndef STDC_HEADERS /* no standard C headers! */
341 #include <curl/stdcheaders.h>
342 #endif
343
344 #ifdef __POCC__
345 #  include <sys/types.h>
346 #  include <unistd.h>
347 #  define sys_nerr EILSEQ
348 #endif
349
350 /*
351  * Salford-C kludge section (mostly borrowed from wxWidgets).
352  */
353 #ifdef __SALFORDC__
354   #pragma suppress 353             /* Possible nested comments */
355   #pragma suppress 593             /* Define not used */
356   #pragma suppress 61              /* enum has no name */
357   #pragma suppress 106             /* unnamed, unused parameter */
358   #include <clib.h>
359 #endif
360
361 /*
362  * Large file (>2Gb) support using WIN32 functions.
363  */
364
365 #ifdef USE_WIN32_LARGE_FILES
366 #  include <io.h>
367 #  include <sys/types.h>
368 #  include <sys/stat.h>
369 #  undef  lseek
370 #  define lseek(fdes,offset,whence)  _lseeki64(fdes, offset, whence)
371 #  undef  fstat
372 #  define fstat(fdes,stp)            _fstati64(fdes, stp)
373 #  undef  stat
374 #  define stat(fname,stp)            _stati64(fname, stp)
375 #  define struct_stat                struct _stati64
376 #  define LSEEK_ERROR                (__int64)-1
377 #endif
378
379 /*
380  * Small file (<2Gb) support using WIN32 functions.
381  */
382
383 #ifdef USE_WIN32_SMALL_FILES
384 #  include <io.h>
385 #  include <sys/types.h>
386 #  include <sys/stat.h>
387 #  ifndef _WIN32_WCE
388 #    undef  lseek
389 #    define lseek(fdes,offset,whence)  _lseek(fdes, (long)offset, whence)
390 #    define fstat(fdes,stp)            _fstat(fdes, stp)
391 #    define stat(fname,stp)            _stat(fname, stp)
392 #    define struct_stat                struct _stat
393 #  endif
394 #  define LSEEK_ERROR                (long)-1
395 #endif
396
397 #ifndef struct_stat
398 #  define struct_stat struct stat
399 #endif
400
401 #ifndef LSEEK_ERROR
402 #  define LSEEK_ERROR (off_t)-1
403 #endif
404
405 /*
406  * Default sizeof(off_t) in case it hasn't been defined in config file.
407  */
408
409 #ifndef SIZEOF_OFF_T
410 #  if defined(__VMS) && !defined(__VAX)
411 #    if defined(_LARGEFILE)
412 #      define SIZEOF_OFF_T 8
413 #    endif
414 #  elif defined(__OS400__) && defined(__ILEC400__)
415 #    if defined(_LARGE_FILES)
416 #      define SIZEOF_OFF_T 8
417 #    endif
418 #  elif defined(__MVS__) && defined(__IBMC__)
419 #    if defined(_LP64) || defined(_LARGE_FILES)
420 #      define SIZEOF_OFF_T 8
421 #    endif
422 #  elif defined(__370__) && defined(__IBMC__)
423 #    if defined(_LP64) || defined(_LARGE_FILES)
424 #      define SIZEOF_OFF_T 8
425 #    endif
426 #  endif
427 #  ifndef SIZEOF_OFF_T
428 #    define SIZEOF_OFF_T 4
429 #  endif
430 #endif
431
432 /*
433  * Arg 2 type for gethostname in case it hasn't been defined in config file.
434  */
435
436 #ifndef GETHOSTNAME_TYPE_ARG2
437 #  ifdef USE_WINSOCK
438 #    define GETHOSTNAME_TYPE_ARG2 int
439 #  else
440 #    define GETHOSTNAME_TYPE_ARG2 size_t
441 #  endif
442 #endif
443
444 /* Below we define some functions. They should
445
446    4. set the SIGALRM signal timeout
447    5. set dir/file naming defines
448    */
449
450 #ifdef WIN32
451
452 #  define DIR_CHAR      "\\"
453 #  define DOT_CHAR      "_"
454
455 #else /* WIN32 */
456
457 #  ifdef MSDOS  /* Watt-32 */
458
459 #    include <sys/ioctl.h>
460 #    define select(n,r,w,x,t) select_s(n,r,w,x,t)
461 #    define ioctl(x,y,z) ioctlsocket(x,y,(char *)(z))
462 #    include <tcp.h>
463 #    ifdef word
464 #      undef word
465 #    endif
466 #    ifdef byte
467 #      undef byte
468 #    endif
469
470 #  endif /* MSDOS */
471
472 #  ifdef __minix
473      /* Minix 3 versions up to at least 3.1.3 are missing these prototypes */
474      extern char * strtok_r(char *s, const char *delim, char **last);
475      extern struct tm * gmtime_r(const time_t * const timep, struct tm *tmp);
476 #  endif
477
478 #  define DIR_CHAR      "/"
479 #  ifndef DOT_CHAR
480 #    define DOT_CHAR      "."
481 #  endif
482
483 #  ifdef MSDOS
484 #    undef DOT_CHAR
485 #    define DOT_CHAR      "_"
486 #  endif
487
488 #  ifndef fileno /* sunos 4 have this as a macro! */
489      int fileno( FILE *stream);
490 #  endif
491
492 #endif /* WIN32 */
493
494 /*
495  * msvc 6.0 requires PSDK in order to have INET6_ADDRSTRLEN
496  * defined in ws2tcpip.h as well as to provide IPv6 support.
497  */
498
499 #if defined(_MSC_VER) && !defined(__POCC__)
500 #  if !defined(HAVE_WS2TCPIP_H) || \
501      ((_MSC_VER < 1300) && !defined(INET6_ADDRSTRLEN))
502 #    undef HAVE_GETADDRINFO_THREADSAFE
503 #    undef HAVE_FREEADDRINFO
504 #    undef HAVE_GETADDRINFO
505 #    undef HAVE_GETNAMEINFO
506 #    undef ENABLE_IPV6
507 #  endif
508 #endif
509
510 /* ---------------------------------------------------------------- */
511 /*             resolver specialty compile-time defines              */
512 /*         CURLRES_* defines to use in the host*.c sources          */
513 /* ---------------------------------------------------------------- */
514
515 /*
516  * lcc-win32 doesn't have _beginthreadex(), lacks threads support.
517  */
518
519 #if defined(__LCC__) && defined(WIN32)
520 #  undef USE_THREADS_POSIX
521 #  undef USE_THREADS_WIN32
522 #endif
523
524 /*
525  * MSVC threads support requires a multi-threaded runtime library.
526  * _beginthreadex() is not available in single-threaded ones.
527  */
528
529 #if defined(_MSC_VER) && !defined(__POCC__) && !defined(_MT)
530 #  undef USE_THREADS_POSIX
531 #  undef USE_THREADS_WIN32
532 #endif
533
534 /*
535  * Mutually exclusive CURLRES_* definitions.
536  */
537
538 #ifdef USE_ARES
539 #  define CURLRES_ASYNCH
540 #  define CURLRES_ARES
541 /* now undef the stock libc functions just to avoid them being used */
542 #  undef HAVE_GETADDRINFO
543 #  undef HAVE_GETHOSTBYNAME
544 #elif defined(USE_THREADS_POSIX) || defined(USE_THREADS_WIN32)
545 #  define CURLRES_ASYNCH
546 #  define CURLRES_THREADED
547 #else
548 #  define CURLRES_SYNCH
549 #endif
550
551 #ifdef ENABLE_IPV6
552 #  define CURLRES_IPV6
553 #else
554 #  define CURLRES_IPV4
555 #endif
556
557 /* ---------------------------------------------------------------- */
558
559 /*
560  * When using WINSOCK, TELNET protocol requires WINSOCK2 API.
561  */
562
563 #if defined(USE_WINSOCK) && (USE_WINSOCK != 2)
564 #  define CURL_DISABLE_TELNET 1
565 #endif
566
567 /*
568  * msvc 6.0 does not have struct sockaddr_storage and
569  * does not define IPPROTO_ESP in winsock2.h. But both
570  * are available if PSDK is properly installed.
571  */
572
573 #if defined(_MSC_VER) && !defined(__POCC__)
574 #  if !defined(HAVE_WINSOCK2_H) || ((_MSC_VER < 1300) && !defined(IPPROTO_ESP))
575 #    undef HAVE_STRUCT_SOCKADDR_STORAGE
576 #  endif
577 #endif
578
579 /*
580  * Intentionally fail to build when using msvc 6.0 without PSDK installed.
581  * The brave of heart can circumvent this, defining ALLOW_MSVC6_WITHOUT_PSDK
582  * in lib/config-win32.h although absolutely discouraged and unsupported.
583  */
584
585 #if defined(_MSC_VER) && !defined(__POCC__)
586 #  if !defined(HAVE_WINDOWS_H) || ((_MSC_VER < 1300) && !defined(_FILETIME_))
587 #    if !defined(ALLOW_MSVC6_WITHOUT_PSDK)
588 #      error MSVC 6.0 requires "February 2003 Platform SDK" a.k.a. \
589              "Windows Server 2003 PSDK"
590 #    else
591 #      define CURL_DISABLE_LDAP 1
592 #    endif
593 #  endif
594 #endif
595
596 #ifdef NETWARE
597 int netware_init(void);
598 #ifndef __NOVELL_LIBC__
599 #include <sys/bsdskt.h>
600 #include <sys/timeval.h>
601 #endif
602 #endif
603
604 #if defined(HAVE_LIBIDN) && defined(HAVE_TLD_H)
605 /* The lib was present and the tld.h header (which is missing in libidn 0.3.X
606    but we only work with libidn 0.4.1 or later) */
607 #define USE_LIBIDN
608 #endif
609
610 #ifndef SIZEOF_TIME_T
611 /* assume default size of time_t to be 32 bit */
612 #define SIZEOF_TIME_T 4
613 #endif
614
615 #define LIBIDN_REQUIRED_VERSION "0.4.1"
616
617 #if defined(USE_GNUTLS) || defined(USE_SSLEAY) || defined(USE_NSS) || \
618     defined(USE_QSOSSL) || defined(USE_POLARSSL) || defined(USE_AXTLS) || \
619     defined(USE_CYASSL) || defined(USE_SCHANNEL) || \
620     defined(USE_DARWINSSL)
621 #define USE_SSL    /* SSL support has been enabled */
622 #endif
623
624 #if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
625 #define USE_HTTP_NEGOTIATE
626 #endif
627
628 /* Single point where USE_NTLM definition might be done */
629 #if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_NTLM)
630 #if defined(USE_SSLEAY) || defined(USE_WINDOWS_SSPI) || \
631     defined(USE_GNUTLS) || defined(USE_NSS) || defined(USE_DARWINSSL)
632 #define USE_NTLM
633 #endif
634 #endif
635
636 /* non-configure builds may define CURL_WANTS_CA_BUNDLE_ENV */
637 #if defined(CURL_WANTS_CA_BUNDLE_ENV) && !defined(CURL_CA_BUNDLE)
638 #define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")
639 #endif
640
641 /*
642  * Provide a mechanism to silence picky compilers, such as gcc 4.6+.
643  * Parameters should of course normally not be unused, but for example when
644  * we have multiple implementations of the same interface it may happen.
645  */
646
647 #if defined(__GNUC__) && ((__GNUC__ >= 3) || \
648   ((__GNUC__ == 2) && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ >= 7)))
649 #  define UNUSED_PARAM __attribute__((__unused__))
650 #else
651 #  define UNUSED_PARAM /*NOTHING*/
652 #endif
653
654 /*
655  * Include macros and defines that should only be processed once.
656  */
657
658 #ifndef HEADER_CURL_SETUP_ONCE_H
659 #include "curl_setup_once.h"
660 #endif
661
662 /*
663  * Definition of our NOP statement Object-like macro
664  */
665
666 #ifndef Curl_nop_stmt
667 #  define Curl_nop_stmt do { } WHILE_FALSE
668 #endif
669
670 /*
671  * Ensure that Winsock and lwIP TCP/IP stacks are not mixed.
672  */
673
674 #if defined(__LWIP_OPT_H__)
675 #  if defined(SOCKET) || \
676      defined(USE_WINSOCK) || \
677      defined(HAVE_WINSOCK_H) || \
678      defined(HAVE_WINSOCK2_H) || \
679      defined(HAVE_WS2TCPIP_H)
680 #    error "Winsock and lwIP TCP/IP stack definitions shall not coexist!"
681 #  endif
682 #endif
683
684 /*
685  * Portable symbolic names for Winsock shutdown() mode flags.
686  */
687
688 #ifdef USE_WINSOCK
689 #  define SHUT_RD   0x00
690 #  define SHUT_WR   0x01
691 #  define SHUT_RDWR 0x02
692 #endif
693
694 /* Define S_ISREG if not defined by system headers, f.e. MSVC */
695 #if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
696 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
697 #endif
698
699 /* Define S_ISDIR if not defined by system headers, f.e. MSVC */
700 #if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR)
701 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
702 #endif
703
704 #endif /* HEADER_CURL_SETUP_H */