47 # define AP_DECLARE_STATIC
54 # define AP_DECLARE_EXPORT
67 #define AP_DECLARE(type) type
77 #define AP_DECLARE_NONSTD(type) type
89 #define AP_DECLARE_DATA
91 #elif defined(AP_DECLARE_STATIC)
92 #define AP_DECLARE(type) type __stdcall
93 #define AP_DECLARE_NONSTD(type) type
94 #define AP_DECLARE_DATA
95 #elif defined(AP_DECLARE_EXPORT)
96 #define AP_DECLARE(type) __declspec(dllexport) type __stdcall
97 #define AP_DECLARE_NONSTD(type) __declspec(dllexport) type
98 #define AP_DECLARE_DATA __declspec(dllexport)
100 #define AP_DECLARE(type) __declspec(dllimport) type __stdcall
101 #define AP_DECLARE_NONSTD(type) __declspec(dllimport) type
102 #define AP_DECLARE_DATA __declspec(dllimport)
115 #define APREQ_DECLARE(d) APR_DECLARE(d)
125 #define APREQ_DECLARE_NONSTD(d) APR_DECLARE_NONSTD(d)
136 #define APREQ_DECLARE_DATA
137 #elif defined (APREQ_DECLARE_STATIC)
138 #define APREQ_DECLARE(type) type __stdcall
139 #define APREQ_DECLARE_NONSTD(type) type
140 #define APREQ_DECLARE_DATA
141 #elif defined (APREQ_DECLARE_EXPORT)
142 #define APREQ_DECLARE(type) __declspec(dllexport) type __stdcall
143 #define APREQ_DECLARE_NONSTD(type) __declspec(dllexport) type
144 #define APREQ_DECLARE_DATA __declspec(dllexport)
146 #define APREQ_DECLARE(type) __declspec(dllimport) type __stdcall
147 #define APREQ_DECLARE_NONSTD(type) __declspec(dllimport) type
148 #define APREQ_DECLARE_DATA __declspec(dllimport)
151 #if !defined(WIN32) || defined(AP_MODULE_DECLARE_STATIC)
162 #define AP_MODULE_DECLARE(type) type __stdcall
164 #define AP_MODULE_DECLARE(type) type
166 #define AP_MODULE_DECLARE_NONSTD(type) type
167 #define AP_MODULE_DECLARE_DATA
176 #define AP_MODULE_DECLARE_EXPORT
177 #define AP_MODULE_DECLARE(type) __declspec(dllexport) type __stdcall
178 #define AP_MODULE_DECLARE_NONSTD(type) __declspec(dllexport) type
179 #define AP_MODULE_DECLARE_DATA __declspec(dllexport)
183 #if (!defined(WIN32) && !defined(NETWARE)) || defined(__MINGW32__)
189 #ifndef DEFAULT_PIDLOG
190 #define DEFAULT_PIDLOG "httpd.pid"
194 #define AP_NONBLOCK_WHEN_MULTI_LISTEN 1
197 #if defined(AP_ENABLE_DTRACE) && HAVE_SYS_SDT_H
200 #undef _DTRACE_VERSION
203 #ifdef _DTRACE_VERSION
204 #include "apache_probes.h"
210 #if APR_HAS_OTHER_CHILD
211 #define AP_HAVE_RELIABLE_PIPED_LOGS TRUE
214 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
221 #if (defined(__GNUC__) && !defined(__cplusplus)) || defined(AP_HAVE_C99)
222 #define AP_HAVE_DESIGNATED_INITIALIZER
225 #ifndef __has_attribute
226 #define __has_attribute(x) 0
228 #if (defined(__GNUC__) && __GNUC__ >= 4) || __has_attribute(sentinel)
229 #define AP_FN_ATTR_SENTINEL __attribute__((sentinel))
231 #define AP_FN_ATTR_SENTINEL
234 #if ( defined(__GNUC__) && \
235 (__GNUC__ >= 4 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 4))) \
236 || __has_attribute(warn_unused_result)
237 #define AP_FN_ATTR_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
239 #define AP_FN_ATTR_WARN_UNUSED_RESULT
242 #if ( defined(__GNUC__) && \
243 (__GNUC__ >= 4 && __GNUC_MINOR__ >= 3)) \
244 || __has_attribute(alloc_size)
245 #define AP_FN_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
246 #define AP_FN_ATTR_ALLOC_SIZE2(x,y) __attribute__((alloc_size(x,y)))
248 #define AP_FN_ATTR_ALLOC_SIZE(x)
249 #define AP_FN_ATTR_ALLOC_SIZE2(x,y)
252 #if ( defined(__GNUC__) && \
253 (__GNUC__ >= 4 || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 3))) \
254 || __has_attribute(nonnull)
256 #define AP_FN_ATTR_NONNULL_ALL __attribute__((nonnull))
258 #define AP_FN_ATTR_NONNULL(x) __attribute__((nonnull x))
260 #define AP_FN_ATTR_NONNULL_ALL
261 #define AP_FN_ATTR_NONNULL(x)
ap hook functions and macros