00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00022 #ifndef AP_CONFIG_H
00023 #define AP_CONFIG_H
00024
00025 #include "apr.h"
00026 #include "apr_hooks.h"
00027 #include "apr_optional_hooks.h"
00028
00029
00035 #ifdef DOXYGEN
00036
00037
00049 # define AP_DECLARE_STATIC
00050
00056 # define AP_DECLARE_EXPORT
00057
00058 #endif
00059
00060 #if !defined(WIN32)
00061
00069 #define AP_DECLARE(type) type
00070
00079 #define AP_DECLARE_NONSTD(type) type
00080
00091 #define AP_DECLARE_DATA
00092
00093 #elif defined(AP_DECLARE_STATIC)
00094 #define AP_DECLARE(type) type __stdcall
00095 #define AP_DECLARE_NONSTD(type) type
00096 #define AP_DECLARE_DATA
00097 #elif defined(AP_DECLARE_EXPORT)
00098 #define AP_DECLARE(type) __declspec(dllexport) type __stdcall
00099 #define AP_DECLARE_NONSTD(type) __declspec(dllexport) type
00100 #define AP_DECLARE_DATA __declspec(dllexport)
00101 #else
00102 #define AP_DECLARE(type) __declspec(dllimport) type __stdcall
00103 #define AP_DECLARE_NONSTD(type) __declspec(dllimport) type
00104 #define AP_DECLARE_DATA __declspec(dllimport)
00105 #endif
00106
00107 #if !defined(WIN32) || defined(AP_MODULE_DECLARE_STATIC)
00108
00117 #if defined(WIN32)
00118 #define AP_MODULE_DECLARE(type) type __stdcall
00119 #else
00120 #define AP_MODULE_DECLARE(type) type
00121 #endif
00122 #define AP_MODULE_DECLARE_NONSTD(type) type
00123 #define AP_MODULE_DECLARE_DATA
00124 #else
00125
00132 #define AP_MODULE_DECLARE_EXPORT
00133 #define AP_MODULE_DECLARE(type) __declspec(dllexport) type __stdcall
00134 #define AP_MODULE_DECLARE_NONSTD(type) __declspec(dllexport) type
00135 #define AP_MODULE_DECLARE_DATA __declspec(dllexport)
00136 #endif
00137
00144 #define AP_DECLARE_HOOK(ret,name,args) \
00145 APR_DECLARE_EXTERNAL_HOOK(ap,AP,ret,name,args)
00146
00148 #define AP_IMPLEMENT_HOOK_BASE(name) \
00149 APR_IMPLEMENT_EXTERNAL_HOOK_BASE(ap,AP,name)
00150
00164 #define AP_IMPLEMENT_HOOK_VOID(name,args_decl,args_use) \
00165 APR_IMPLEMENT_EXTERNAL_HOOK_VOID(ap,AP,name,args_decl,args_use)
00166
00187 #define AP_IMPLEMENT_HOOK_RUN_ALL(ret,name,args_decl,args_use,ok,decline) \
00188 APR_IMPLEMENT_EXTERNAL_HOOK_RUN_ALL(ap,AP,ret,name,args_decl, \
00189 args_use,ok,decline)
00190
00207 #define AP_IMPLEMENT_HOOK_RUN_FIRST(ret,name,args_decl,args_use,decline) \
00208 APR_IMPLEMENT_EXTERNAL_HOOK_RUN_FIRST(ap,AP,ret,name,args_decl, \
00209 args_use,decline)
00210
00211
00212
00213
00214
00220 #define AP_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ret,name,args_decl,args_use,ok, \
00221 decline) \
00222 APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ap,AP,ret,name,args_decl, \
00223 args_use,ok,decline)
00224
00229 #define AP_OPTIONAL_HOOK(name,fn,pre,succ,order) \
00230 APR_OPTIONAL_HOOK(ap,name,fn,pre,succ,order)
00231
00232 #include "os.h"
00233 #if !defined(WIN32) && !defined(NETWARE)
00234 #include "ap_config_auto.h"
00235 #include "ap_config_layout.h"
00236 #endif
00237 #if defined(NETWARE)
00238 #define AP_NONBLOCK_WHEN_MULTI_LISTEN 1
00239 #endif
00240
00241
00242
00243 #if defined(SUNOS4) || defined(IRIX) || defined(NEXT) || defined(AUX3) \
00244 || defined (UW) || defined(LYNXOS) || defined(TPF)
00245
00246
00247 #define NO_LINGCLOSE
00248 #endif
00249
00250
00251 #if APR_HAS_OTHER_CHILD
00252 #define AP_HAVE_RELIABLE_PIPED_LOGS TRUE
00253 #endif
00254
00255
00256
00257
00258 #if (defined(__GNUC__) && !defined(__cplusplus)) \
00259 || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
00260 #define AP_HAVE_DESIGNATED_INITIALIZER
00261 #endif
00262
00263 #endif