59 #if !defined(__GNUC__) || __GNUC__ < 2 || \
60 (__GNUC__ == 2 && __GNUC_MINOR__ < 7) ||\
63 #define __attribute__(__x)
66 #define APR_HAS_INLINE 0
68 #define APR_INLINE __inline__
69 #define APR_HAS_INLINE 1
72 #define APR_HAVE_ARPA_INET_H 1
73 #define APR_HAVE_CONIO_H 0
74 #define APR_HAVE_CRYPT_H 1
75 #define APR_HAVE_CTYPE_H 1
76 #define APR_HAVE_DIRENT_H 1
77 #define APR_HAVE_ERRNO_H 1
78 #define APR_HAVE_FCNTL_H 1
79 #define APR_HAVE_IFADDRS_H 1
80 #define APR_HAVE_IO_H 0
81 #define APR_HAVE_LIMITS_H 1
82 #define APR_HAVE_MSWSOCK_H 0
83 #define APR_HAVE_NETDB_H 1
84 #define APR_HAVE_NETINET_IN_H 1
85 #define APR_HAVE_NETINET_SCTP_H 1
86 #define APR_HAVE_NETINET_SCTP_UIO_H 0
87 #define APR_HAVE_NETINET_TCP_H 1
88 #define APR_HAVE_PROCESS_H 0
89 #define APR_HAVE_PTHREAD_H 1
90 #define APR_HAVE_SEMAPHORE_H 1
91 #define APR_HAVE_SIGNAL_H 1
92 #define APR_HAVE_STDARG_H 1
93 #define APR_HAVE_STDDEF_H 1
94 #define APR_HAVE_STDINT_H 1
95 #define APR_HAVE_STDIO_H 1
96 #define APR_HAVE_STDLIB_H 1
97 #define APR_HAVE_STRING_H 1
98 #define APR_HAVE_STRINGS_H 1
99 #define APR_HAVE_INTTYPES_H 1
100 #define APR_HAVE_SYS_IOCTL_H 1
101 #define APR_HAVE_SYS_SENDFILE_H 1
102 #define APR_HAVE_SYS_SIGNAL_H 1
103 #define APR_HAVE_SYS_SOCKET_H 1
104 #define APR_HAVE_SYS_SOCKIO_H 0
105 #define APR_HAVE_SYS_SYSLIMITS_H 0
106 #define APR_HAVE_SYS_TIME_H 1
107 #define APR_HAVE_SYS_TYPES_H 1
108 #define APR_HAVE_SYS_UIO_H 1
109 #define APR_HAVE_SYS_UN_H 1
110 #define APR_HAVE_SYS_WAIT_H 1
111 #define APR_HAVE_TIME_H 1
112 #define APR_HAVE_UNISTD_H 1
113 #define APR_HAVE_WINDOWS_H 0
114 #define APR_HAVE_WINSOCK2_H 0
115 #define APR_HAVE_WS2TCPIP_H 0
124 #if APR_HAVE_WINDOWS_H && defined(WIN32)
134 #ifndef WIN32_LEAN_AND_MEAN
135 #define WIN32_LEAN_AND_MEAN
138 #define _WIN32_WINNT 0x0A00
153 #if APR_HAVE_WINSOCK2_H
161 #if APR_HAVE_WINSOCK2_H
162 #include <WinSock2.h>
164 #if APR_HAVE_WS2TCPIP_H
165 #include <WS2tcpip.h>
168 #if APR_HAVE_MSWSOCK_H
174 #if APR_HAVE_SYS_TYPES_H
175 #include <sys/types.h>
178 #if APR_HAVE_STDDEF_H
182 #if APR_HAVE_SYS_SOCKET_H
183 #include <sys/socket.h>
186 #if APR_HAVE_STDINT_H
190 #ifndef __STDC_CONSTANT_MACROS
191 #define __STDC_CONSTANT_MACROS
194 #ifndef __STDC_FORMAT_MACROS
195 #define __STDC_FORMAT_MACROS
201 #if APR_HAVE_INTTYPES_H
202 #include <inttypes.h>
205 #if APR_HAVE_SYS_WAIT_H
206 #include <sys/wait.h>
211 #define INCL_DOSERRORS
216 #if APR_HAVE_LIMITS_H
219 #if APR_HAVE_SYS_SYSLIMITS_H
220 #include <sys/syslimits.h>
242 #define APR_HAVE_SHMEM_MMAP_TMP 1
243 #define APR_HAVE_SHMEM_MMAP_SHM 1
244 #define APR_HAVE_SHMEM_MMAP_ZERO 1
245 #define APR_HAVE_SHMEM_SHMGET_ANON 1
246 #define APR_HAVE_SHMEM_SHMGET 1
247 #define APR_HAVE_SHMEM_MMAP_ANON 1
248 #define APR_HAVE_SHMEM_BEOS 0
250 #define APR_USE_SHMEM_MMAP_TMP 0
251 #define APR_USE_SHMEM_MMAP_SHM 1
252 #define APR_USE_SHMEM_MMAP_ZERO 0
253 #define APR_USE_SHMEM_SHMGET_ANON 0
254 #define APR_USE_SHMEM_SHMGET 0
255 #define APR_USE_SHMEM_MMAP_ANON 1
256 #define APR_USE_SHMEM_BEOS 0
258 #define APR_USE_FLOCK_SERIALIZE 0
259 #define APR_USE_SYSVSEM_SERIALIZE 0
260 #define APR_USE_POSIXSEM_SERIALIZE 0
261 #define APR_USE_FCNTL_SERIALIZE 0
262 #define APR_USE_PROC_PTHREAD_SERIALIZE 1
263 #define APR_USE_PTHREAD_SERIALIZE 1
265 #define APR_HAS_FLOCK_SERIALIZE 1
266 #define APR_HAS_SYSVSEM_SERIALIZE 1
267 #define APR_HAS_POSIXSEM_SERIALIZE 1
268 #define APR_HAS_FCNTL_SERIALIZE 1
269 #define APR_HAS_PROC_PTHREAD_SERIALIZE 1
271 #define APR_PROCESS_LOCK_IS_GLOBAL 0
273 #define APR_HAVE_CORKABLE_TCP 1
274 #define APR_HAVE_GETRLIMIT 1
275 #define APR_HAVE_IN_ADDR 1
276 #define APR_HAVE_INET_ADDR 1
277 #define APR_HAVE_INET_NETWORK 1
278 #define APR_HAVE_IPV6 1
279 #define APR_HAVE_SOCKADDR_UN 1
280 #define APR_HAVE_MEMMEM 1
281 #define APR_HAVE_MEMMOVE 1
282 #define APR_HAVE_SETRLIMIT 1
283 #define APR_HAVE_SIGACTION 1
284 #define APR_HAVE_SIGSUSPEND 1
285 #define APR_HAVE_SIGWAIT 1
286 #define APR_HAVE_SA_STORAGE 1
287 #define APR_HAVE_STRCASECMP 1
288 #define APR_HAVE_STRDUP 1
289 #define APR_HAVE_STRICMP 0
290 #define APR_HAVE_STRNCASECMP 1
291 #define APR_HAVE_STRNICMP 0
292 #define APR_HAVE_STRSTR 1
293 #define APR_HAVE_MEMCHR 1
294 #define APR_HAVE_STRUCT_RLIMIT 1
295 #define APR_HAVE_UNION_SEMUN 0
296 #define APR_HAVE_SCTP 1
297 #define APR_HAVE_IOVEC 1
300 #define APR_HAS_SHARED_MEMORY 1
301 #define APR_HAS_THREADS 1
302 #define APR_HAS_SENDFILE 1
303 #define APR_HAS_MMAP 1
304 #define APR_HAS_FORK 1
305 #define APR_HAS_RANDOM 1
306 #define APR_HAS_OTHER_CHILD 1
307 #define APR_HAS_DSO 1
308 #define APR_HAS_SO_ACCEPTFILTER 0
309 #define APR_HAS_UNICODE_FS 0
310 #define APR_HAS_PROC_INVOKED 0
311 #define APR_HAS_USER 1
312 #define APR_HAS_LARGE_FILES 0
313 #define APR_HAS_XTHREAD_FILES 0
314 #define APR_HAS_OS_UUID 1
316 #define APR_PROCATTR_USER_SET_REQUIRES_PASSWORD 0
321 #define APR_FILES_AS_SOCKETS 1
325 #define APR_CHARSET_EBCDIC 0
330 #define APR_TCP_NOPUSH_FLAG TCP_CORK
334 #define APR_TCP_NODELAY_INHERITED 1
338 #define APR_O_NONBLOCK_INHERITED 0
350 #define APR_SIZEOF_VOIDP 8
351 #define APR_SIZEOF_OFF_T 8
369 #undef APR_SIZEOF_VOIDP
375 #define APR_SIZEOF_VOIDP 8
376 #define APR_INT64_C(v) (v ## L)
377 #define APR_UINT64_C(v) (v ## UL)
381 #define APR_SIZEOF_VOIDP 4
382 #define APR_INT64_C(v) (v ## LL)
383 #define APR_UINT64_C(v) (v ## ULL)
390 #define APR_INT64_C(val) INT64_C(val)
391 #define APR_UINT64_C(val) UINT64_C(val)
400 #if APR_SIZEOF_VOIDP == 8
409 #define APR_IS_BIGENDIAN 0
412 #define APR_INT16_MIN INT16_MIN
414 #define APR_INT16_MIN (-0x7fff - 1)
418 #define APR_INT16_MAX INT16_MAX
420 #define APR_INT16_MAX (0x7fff)
424 #define APR_UINT16_MAX UINT16_MAX
426 #define APR_UINT16_MAX (0xffff)
430 #define APR_INT32_MIN INT32_MIN
432 #define APR_INT32_MIN (-0x7fffffff - 1)
436 #define APR_INT32_MAX INT32_MAX
438 #define APR_INT32_MAX 0x7fffffff
442 #define APR_UINT32_MAX UINT32_MAX
444 #define APR_UINT32_MAX (0xffffffffU)
448 #define APR_INT64_MIN INT64_MIN
450 #define APR_INT64_MIN (APR_INT64_C(-0x7fffffffffffffff) - 1)
454 #define APR_INT64_MAX INT64_MAX
456 #define APR_INT64_MAX APR_INT64_C(0x7fffffffffffffff)
460 #define APR_UINT64_MAX UINT64_MAX
462 #define APR_UINT64_MAX APR_UINT64_C(0xffffffffffffffff)
465 #define APR_SIZE_MAX (~((apr_size_t)0))
474 #define APR_BEGIN_DECLS extern "C" {
475 #define APR_END_DECLS }
477 #define APR_BEGIN_DECLS
478 #define APR_END_DECLS
490 #define APR_THREAD_FUNC
492 #if defined(DOXYGEN) || !defined(WIN32)
515 #define APR_DECLARE(type) type
528 #define APR_DECLARE_NONSTD(type) type
544 #define APR_DECLARE_DATA
546 #elif defined(APR_DECLARE_STATIC)
547 #define APR_DECLARE(type) type __stdcall
548 #define APR_DECLARE_NONSTD(type) type __cdecl
549 #define APR_DECLARE_DATA
550 #elif defined(APR_DECLARE_EXPORT)
551 #define APR_DECLARE(type) __declspec(dllexport) type __stdcall
552 #define APR_DECLARE_NONSTD(type) __declspec(dllexport) type __cdecl
553 #define APR_DECLARE_DATA __declspec(dllexport)
555 #define APR_DECLARE(type) __declspec(dllimport) type __stdcall
556 #define APR_DECLARE_NONSTD(type) __declspec(dllimport) type __cdecl
557 #define APR_DECLARE_DATA __declspec(dllimport)
560 #if !defined(WIN32) || defined(APU_MODULE_DECLARE_STATIC)
570 #define APR_MODULE_DECLARE_DATA
572 #define APR_MODULE_DECLARE_DATA __declspec(dllexport)
579 #define APU_MODULE_DECLARE_DATA APR_MODULE_DECLARE_DATA
590 #define APR_SSIZE_T_FMT "ld"
593 #define APR_SIZE_T_FMT "lu"
596 #define APR_OFF_T_FMT "ld"
599 #define APR_PID_T_FMT "d"
602 #define APR_INT64_T_FMT PRId64
605 #define APR_UINT64_T_FMT PRIu64
608 #define APR_UINT64_T_HEX_FMT PRIx64
615 #undef APR_HAS_LARGE_FILES
616 #undef APR_SIZEOF_VOIDP
617 #undef APR_INT64_T_FMT
618 #undef APR_UINT64_T_FMT
619 #undef APR_UINT64_T_HEX_FMT
622 #define APR_HAS_LARGE_FILES 0
623 #define APR_SIZEOF_VOIDP 8
624 #define APR_INT64_T_FMT "ld"
625 #define APR_UINT64_T_FMT "lu"
626 #define APR_UINT64_T_HEX_FMT "lx"
628 #define APR_HAS_LARGE_FILES 1
629 #define APR_SIZEOF_VOIDP 4
630 #define APR_INT64_T_FMT "lld"
631 #define APR_UINT64_T_FMT "llu"
632 #define APR_UINT64_T_HEX_FMT "llx"
635 #undef APR_IS_BIGENDIAN
636 #ifdef __BIG_ENDIAN__
637 #define APR_IS_BIGENDIAN 1
639 #define APR_IS_BIGENDIAN 0
643 #define APR_OFF_T_FMT "lld"
649 #define APR_PROC_MUTEX_IS_GLOBAL 1
651 #define APR_PROC_MUTEX_IS_GLOBAL 0
655 #define APR_EOL_STR "\n"
657 #if APR_HAVE_SYS_WAIT_H
659 #define apr_wait_t int
661 #define apr_wait_t union wait
662 #define WEXITSTATUS(status) (int)((status).w_retcode)
663 #define WTERMSIG(status) (int)((status).w_termsig)
665 #elif defined(__MINGW32__)
669 #if defined(PATH_MAX)
670 #define APR_PATH_MAX PATH_MAX
671 #elif defined(_POSIX_PATH_MAX)
672 #define APR_PATH_MAX _POSIX_PATH_MAX
674 #error no decision has been made on APR_PATH_MAX for your platform
677 #define APR_DSOPATH "LD_LIBRARY_PATH"
684 #define APU_HAVE_SDBM 1
685 #define APU_HAVE_GDBM 0
686 #define APU_HAVE_NDBM 0
687 #define APU_HAVE_DB 0
690 #define APU_HAVE_DB_VERSION 0
693 #define APU_HAVE_PGSQL 0
694 #define APU_HAVE_MYSQL 0
695 #define APU_HAVE_SQLITE3 1
696 #define APU_HAVE_SQLITE2 0
697 #define APU_HAVE_ORACLE 0
698 #define APU_HAVE_ODBC 0
700 #define APU_HAVE_CRYPTO 0
701 #define APU_HAVE_CRYPTO_PRNG 0
702 #define APU_HAVE_OPENSSL 0
703 #define APU_HAVE_NSS 0
704 #define APU_HAVE_COMMONCRYPTO 0
706 #define APU_HAVE_ICONV 1
707 #define APR_HAS_XLATE (APU_HAVE_ICONV)
709 #define APU_USE_EXPAT 1
710 #define APU_USE_LIBXML2 0