Apache Portable Runtime
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
apr.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 #ifndef APR_H
19 #define APR_H
20 
21 /* GENERATED FILE WARNING! DO NOT EDIT apr.h
22  *
23  * You must modify apr.h.in instead.
24  *
25  * And please, make an effort to stub apr.hw and apr.hnw in the process.
26  */
27 
28 /**
29  * @file apr.h
30  * @brief APR Platform Definitions
31  * @remark This is a generated header generated from include/apr.h.in by
32  * ./configure, or copied from include/apr.hw or include/apr.hnw
33  * for Win32 or Netware by those build environments, respectively.
34  */
35 
36 /**
37  * @defgroup APR Apache Portability Runtime library
38  * @{
39  */
40 /**
41  * @defgroup apr_platform Platform Definitions
42  * @{
43  * @warning
44  * <strong><em>The actual values of macros and typedefs on this page<br>
45  * are platform specific and should NOT be relied upon!</em></strong>
46  */
47 
48 /* So that we can use inline on some critical functions, and use
49  * GNUC attributes (such as to get -Wall warnings for printf-like
50  * functions). Only do this in gcc 2.7 or later ... it may work
51  * on earlier stuff, but why chance it.
52  *
53  * We've since discovered that the gcc shipped with NeXT systems
54  * as "cc" is completely broken. It claims to be __GNUC__ and so
55  * on, but it doesn't implement half of the things that __GNUC__
56  * means. In particular it's missing inline and the __attribute__
57  * stuff. So we hack around it. PR#1613. -djg
58  */
59 #if !defined(__GNUC__) || __GNUC__ < 2 || \
60  (__GNUC__ == 2 && __GNUC_MINOR__ < 7) ||\
61  defined(NEXT)
62 #ifndef __attribute__
63 #define __attribute__(__x)
64 #endif
65 #define APR_INLINE
66 #define APR_HAS_INLINE 0
67 #else
68 #define APR_INLINE __inline__
69 #define APR_HAS_INLINE 1
70 #endif
71 
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_IO_H 0
80 #define APR_HAVE_LIMITS_H 1
81 #define APR_HAVE_NETDB_H 1
82 #define APR_HAVE_NETINET_IN_H 1
83 #define APR_HAVE_NETINET_SCTP_H 0
84 #define APR_HAVE_NETINET_SCTP_UIO_H 0
85 #define APR_HAVE_NETINET_TCP_H 1
86 #define APR_HAVE_PROCESS_H 0
87 #define APR_HAVE_PTHREAD_H 1
88 #define APR_HAVE_SEMAPHORE_H 1
89 #define APR_HAVE_SIGNAL_H 1
90 #define APR_HAVE_STDARG_H 1
91 #define APR_HAVE_STDINT_H 1
92 #define APR_HAVE_STDIO_H 1
93 #define APR_HAVE_STDLIB_H 1
94 #define APR_HAVE_STRING_H 1
95 #define APR_HAVE_STRINGS_H 1
96 #define APR_HAVE_SYS_IOCTL_H 1
97 #define APR_HAVE_SYS_SENDFILE_H 1
98 #define APR_HAVE_SYS_SIGNAL_H 1
99 #define APR_HAVE_SYS_SOCKET_H 1
100 #define APR_HAVE_SYS_SOCKIO_H 0
101 #define APR_HAVE_SYS_SYSLIMITS_H 0
102 #define APR_HAVE_SYS_TIME_H 1
103 #define APR_HAVE_SYS_TYPES_H 1
104 #define APR_HAVE_SYS_UIO_H 1
105 #define APR_HAVE_SYS_UN_H 1
106 #define APR_HAVE_SYS_WAIT_H 1
107 #define APR_HAVE_TIME_H 1
108 #define APR_HAVE_UNISTD_H 1
109 #define APR_HAVE_WINDOWS_H 0
110 #define APR_HAVE_WINSOCK2_H 0
111 
112 /** @} */
113 /** @} */
114 
115 /* We don't include our conditional headers within the doxyblocks
116  * or the extern "C" namespace
117  */
118 
119 #if APR_HAVE_WINDOWS_H
120 /* If windows.h was already included, our preferences don't matter.
121  * If not, include a restricted set of windows headers to our tastes.
122  */
123 #ifndef _WINDOWS_
124 
125 #ifndef WIN32_LEAN_AND_MEAN
126 #define WIN32_LEAN_AND_MEAN
127 #endif
128 
129 #ifndef _WIN32_WINNT
130 /* Restrict the server to a subset of Windows XP header files by default
131  */
132 #define _WIN32_WINNT 0x0501
133 #endif
134 
135 #ifndef NOUSER
136 #define NOUSER
137 #endif
138 #ifndef NOMCX
139 #define NOMCX
140 #endif
141 #ifndef NOIME
142 #define NOIME
143 #endif
144 
145 #include <windows.h>
146 /*
147  * Add a _very_few_ declarations missing from the restricted set of headers
148  * (If this list becomes extensive, re-enable the required headers above!)
149  * winsock headers were excluded by WIN32_LEAN_AND_MEAN, so include them now
150  */
151 #define SW_HIDE 0
152 #ifndef _WIN32_WCE
153 #include <winsock2.h>
154 #include <ws2tcpip.h>
155 #include <mswsock.h>
156 #else
157 #include <winsock.h>
158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158 #endif
"> 158