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 0
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_SYS_IOCTL_H 1
100 #define APR_HAVE_SYS_SENDFILE_H 1
101 #define APR_HAVE_SYS_SIGNAL_H 1
102 #define APR_HAVE_SYS_SOCKET_H 1
103 #define APR_HAVE_SYS_SOCKIO_H 0
104 #define APR_HAVE_SYS_SYSLIMITS_H 0
105 #define APR_HAVE_SYS_TIME_H 1
106 #define APR_HAVE_SYS_TYPES_H 1
107 #define APR_HAVE_SYS_UIO_H 1
108 #define APR_HAVE_SYS_UN_H 1
109 #define APR_HAVE_SYS_WAIT_H 1
110 #define APR_HAVE_TIME_H 1
111 #define APR_HAVE_UNISTD_H 1
112 #define APR_HAVE_WINDOWS_H 0
113 #define APR_HAVE_WINSOCK2_H 0
114 #define APR_HAVE_WS2TCPIP_H 0
123 #if APR_HAVE_WINDOWS_H && defined(WIN32)
129 #ifndef WIN32_LEAN_AND_MEAN
130 #define WIN32_LEAN_AND_MEAN
134 #define _WIN32_WINNT 0x0501
150 #if APR_HAVE_WINSOCK2_H
158 #if APR_HAVE_WINSOCK2_H
159 #include <winsock2.h>
161 #if APR_HAVE_WS2TCPIP_H
162 #include <ws2tcpip.h>
165 #if APR_HAVE_MSWSOCK_H
171 #if APR_HAVE_WINSOCK_H
177 #if APR_HAVE_SYS_TYPES_H
178 #include <sys/types.h>
181 #if APR_HAVE_STDDEF_H
185 #if APR_HAVE_SYS_SOCKET_H
186 #include <sys/socket.h>
189 #if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS)
192 #define __STDC_CONSTANT_MACROS
195 #if APR_HAVE_STDINT_H
199 #if APR_HAVE_SYS_WAIT_H
200 #include <sys/wait.h>
205 #define INCL_DOSERRORS
210 #if APR_HAVE_LIMITS_H
213 #if APR_HAVE_SYS_SYSLIMITS_H
214 #include <sys/syslimits.h>
229 #define APR_HAVE_SHMEM_MMAP_TMP 1
230 #define APR_HAVE_SHMEM_MMAP_SHM 1
231 #define APR_HAVE_SHMEM_MMAP_ZERO 1
232 #define APR_HAVE_SHMEM_SHMGET_ANON 1
233 #define APR_HAVE_SHMEM_SHMGET 1
234 #define APR_HAVE_SHMEM_MMAP_ANON 1
235 #define APR_HAVE_SHMEM_BEOS 0
237 #define APR_USE_SHMEM_MMAP_TMP 0
238 #define APR_USE_SHMEM_MMAP_SHM 0
239 #define APR_USE_SHMEM_MMAP_ZERO 0
240 #define APR_USE_SHMEM_SHMGET_ANON 0
241 #define APR_USE_SHMEM_SHMGET 1
242 #define APR_USE_SHMEM_MMAP_ANON 1
243 #define APR_USE_SHMEM_BEOS 0
245 #define APR_USE_FLOCK_SERIALIZE 0
246 #define APR_USE_SYSVSEM_SERIALIZE 1
247 #define APR_USE_POSIXSEM_SERIALIZE 0
248 #define APR_USE_FCNTL_SERIALIZE 0
249 #define APR_USE_PROC_PTHREAD_SERIALIZE 0
250 #define APR_USE_PTHREAD_SERIALIZE 1
252 #define APR_HAS_FLOCK_SERIALIZE 1
253 #define APR_HAS_SYSVSEM_SERIALIZE 1
254 #define APR_HAS_POSIXSEM_SERIALIZE 1
255 #define APR_HAS_FCNTL_SERIALIZE 1
256 #define APR_HAS_PROC_PTHREAD_SERIALIZE 1
258 #define APR_PROCESS_LOCK_IS_GLOBAL 0
260 #define APR_HAVE_CORKABLE_TCP 1
261 #define APR_HAVE_GETRLIMIT 1
262 #define APR_HAVE_IN_ADDR 1
263 #define APR_HAVE_INET_ADDR 1
264 #define APR_HAVE_INET_NETWORK 1
265 #define APR_HAVE_IPV6 1
266 #define APR_HAVE_SOCKADDR_UN 1
267 #define APR_HAVE_MEMMOVE 1
268 #define APR_HAVE_SETRLIMIT 1
269 #define APR_HAVE_SIGACTION 1
270 #define APR_HAVE_SIGSUSPEND 1
271 #define APR_HAVE_SIGWAIT 1
272 #define APR_HAVE_SA_STORAGE 1
273 #define APR_HAVE_STRCASECMP 1
274 #define APR_HAVE_STRDUP 1
275 #define APR_HAVE_STRICMP 0
276 #define APR_HAVE_STRNCASECMP 1
277 #define APR_HAVE_STRNICMP 0
278 #define APR_HAVE_STRSTR 1
279 #define APR_HAVE_MEMCHR 1
280 #define APR_HAVE_STRUCT_RLIMIT 1
281 #define APR_HAVE_UNION_SEMUN 0
282 #define APR_HAVE_SCTP 0
283 #define APR_HAVE_IOVEC 1
286 #define APR_HAS_SHARED_MEMORY 1
287 #define APR_HAS_THREADS 1
288 #define APR_HAS_SENDFILE 1
289 #define APR_HAS_MMAP 1
290 #define APR_HAS_FORK 1
291 #define APR_HAS_RANDOM 1
292 #define APR_HAS_OTHER_CHILD 1
293 #define APR_HAS_DSO 1
294 #define APR_HAS_SO_ACCEPTFILTER 0
295 #define APR_HAS_UNICODE_FS 0
296 #define APR_HAS_PROC_INVOKED 0
297 #define APR_HAS_USER 1
298 #define APR_HAS_LARGE_FILES 0
299 #define APR_HAS_XTHREAD_FILES 0
300 #define APR_HAS_OS_UUID 1
302 #define APR_PROCATTR_USER_SET_REQUIRES_PASSWORD 0
307 #define APR_FILES_AS_SOCKETS 1
311 #define APR_CHARSET_EBCDIC 0
316 #define APR_TCP_NOPUSH_FLAG TCP_CORK
320 #define APR_TCP_NODELAY_INHERITED 1
324 #define APR_O_NONBLOCK_INHERITED 0
328 typedef unsigned char apr_byte_t;
330 typedef short apr_int16_t;
331 typedef unsigned short apr_uint16_t;
333 typedef int apr_int32_t;
334 typedef unsigned int apr_uint32_t;
336 #define APR_SIZEOF_VOIDP 8
354 #undef APR_SIZEOF_VOIDP
358 typedef long apr_int64_t;
359 typedef unsigned long apr_uint64_t;
360 #define APR_SIZEOF_VOIDP 8
361 #define INT64_C(v) (v ## L)
362 #define UINT64_C(v) (v ## UL)
364 typedef long long apr_int64_t;
365 typedef unsigned long long apr_uint64_t;
366 #define APR_SIZEOF_VOIDP 4
367 #define INT64_C(v) (v ## LL)
368 #define UINT64_C(v) (v ## ULL)
371 typedef long apr_int64_t;
372 typedef unsigned long apr_uint64_t;
375 typedef size_t apr_size_t;
376 typedef ssize_t apr_ssize_t;
377 typedef off_t apr_off_t;
378 typedef socklen_t apr_socklen_t;
379 typedef ino_t apr_ino_t;
381 #if APR_SIZEOF_VOIDP == 8
382 typedef apr_uint64_t apr_uintptr_t;
383 typedef apr_int64_t apr_intptr_t;
385 typedef apr_uint32_t apr_uintptr_t;
386 typedef apr_int32_t apr_intptr_t;
390 #define APR_IS_BIGENDIAN 0
393 #define APR_INT64_C(val) INT64_C(val)
394 #define APR_UINT64_C(val) UINT64_C(val)
397 #define APR_INT16_MIN INT16_MIN
399 #define APR_INT16_MIN (-0x7fff - 1)
403 #define APR_INT16_MAX INT16_MAX
405 #define APR_INT16_MAX (0x7fff)
409 #define APR_UINT16_MAX UINT16_MAX
411 #define APR_UINT16_MAX (0xffff)
415 #define APR_INT32_MIN INT32_MIN
417 #define APR_INT32_MIN (-0x7fffffff - 1)
421 #define APR_INT32_MAX INT32_MAX
423 #define APR_INT32_MAX 0x7fffffff
427 #define APR_UINT32_MAX UINT32_MAX
429 #define APR_UINT32_MAX (0xffffffffU)
433 #define APR_INT64_MIN INT64_MIN
435 #define APR_INT64_MIN (APR_INT64_C(-0x7fffffffffffffff) - 1)
439 #define APR_INT64_MAX INT64_MAX
441 #define APR_INT64_MAX APR_INT64_C(0x7fffffffffffffff)
445 #define APR_UINT64_MAX UINT64_MAX
447 #define APR_UINT64_MAX APR_UINT64_C(0xffffffffffffffff)
450 #define APR_SIZE_MAX (~((apr_size_t)0))
459 #define APR_BEGIN_DECLS extern "C" {
460 #define APR_END_DECLS }
462 #define APR_BEGIN_DECLS
463 #define APR_END_DECLS
475 #define APR_THREAD_FUNC
477 #if defined(DOXYGEN) || !defined(WIN32)
500 #define APR_DECLARE(type) type
513 #define APR_DECLARE_NONSTD(type) type
529 #define APR_DECLARE_DATA
531 #elif defined(APR_DECLARE_STATIC)
532 #define APR_DECLARE(type) type __stdcall
533 #define APR_DECLARE_NONSTD(type) type __cdecl
534 #define APR_DECLARE_DATA
535 #elif defined(APR_DECLARE_EXPORT)
536 #define APR_DECLARE(type) __declspec(dllexport) type __stdcall
537 #define APR_DECLARE_NONSTD(type) __declspec(dllexport) type __cdecl
538 #define APR_DECLARE_DATA __declspec(dllexport)
540 #define APR_DECLARE(type) __declspec(dllimport) type __stdcall
541 #define APR_DECLARE_NONSTD(type) __declspec(dllimport) type __cdecl
542 #define APR_DECLARE_DATA __declspec(dllimport)
545 #if !defined(WIN32) || defined(APU_MODULE_DECLARE_STATIC)
555 #define APR_MODULE_DECLARE_DATA
557 #define APR_MODULE_DECLARE_DATA __declspec(dllexport)
564 #define APU_MODULE_DECLARE_DATA APR_MODULE_DECLARE_DATA
575 #define APR_SSIZE_T_FMT "ld"
578 #define APR_SIZE_T_FMT "lu"
581 #define APR_OFF_T_FMT "ld"
584 #define APR_PID_T_FMT "d"
587 #define APR_INT64_T_FMT "ld"
590 #define APR_UINT64_T_FMT "lu"
593 #define APR_UINT64_T_HEX_FMT "lx"
600 #undef APR_HAS_LARGE_FILES
601 #undef APR_SIZEOF_VOIDP
602 #undef APR_INT64_T_FMT
603 #undef APR_UINT64_T_FMT
604 #undef APR_UINT64_T_HEX_FMT
607 #define APR_HAS_LARGE_FILES 0
608 #define APR_SIZEOF_VOIDP 8
609 #define APR_INT64_T_FMT "ld"
610 #define APR_UINT64_T_FMT "lu"
611 #define APR_UINT64_T_HEX_FMT "lx"
613 #define APR_HAS_LARGE_FILES 1
614 #define APR_SIZEOF_VOIDP 4
615 #define APR_INT64_T_FMT "lld"
616 #define APR_UINT64_T_FMT "llu"
617 #define APR_UINT64_T_HEX_FMT "llx"
620 #undef APR_IS_BIGENDIAN
621 #ifdef __BIG_ENDIAN__
622 #define APR_IS_BIGENDIAN 1
624 #define APR_IS_BIGENDIAN 0
628 #define APR_OFF_T_FMT "lld"
634 #define APR_PROC_MUTEX_IS_GLOBAL 1
636 #define APR_PROC_MUTEX_IS_GLOBAL 0
640 #define APR_EOL_STR "\n"
642 #if APR_HAVE_SYS_WAIT_H
644 #define apr_wait_t int
646 #define apr_wait_t union wait
647 #define WEXITSTATUS(status) (int)((status).w_retcode)
648 #define WTERMSIG(status) (int)((status).w_termsig)
650 #elif defined(__MINGW32__)
651 typedef int apr_wait_t;
654 #if defined(PATH_MAX)
655 #define APR_PATH_MAX PATH_MAX
656 #elif defined(_POSIX_PATH_MAX)
657 #define APR_PATH_MAX _POSIX_PATH_MAX
659 #error no decision has been made on APR_PATH_MAX for your platform
662 #define APR_DSOPATH "LD_LIBRARY_PATH"
669 #define APU_HAVE_SDBM 1
670 #define APU_HAVE_GDBM 0
671 #define APU_HAVE_NDBM 0
672 #define APU_HAVE_DB 0
675 #define APU_HAVE_DB_VERSION 0
678 #define APU_HAVE_PGSQL 1
679 #define APU_HAVE_MYSQL 0
680 #define APU_HAVE_SQLITE3 1
681 #define APU_HAVE_SQLITE2 0
682 #define APU_HAVE_ORACLE 0
683 #define APU_HAVE_ODBC 0
685 #define APU_HAVE_CRYPTO 1
686 #define APU_HAVE_OPENSSL 1
687 #define APU_HAVE_NSS 0
688 #define APU_HAVE_COMMONCRYPTO 0
690 #define APU_HAVE_ICONV 1
691 #define APR_HAS_XLATE (APU_HAVE_ICONV)
693 #define APU_USE_EXPAT 1
694 #define APU_USE_LIBXML2 0