00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef APT_H
00020 #define APT_H
00021
00022
00023
00024
00025
00026
00027 #include <apr.h>
00028 #include <apr_pools.h>
00029 #include <apr_strings.h>
00030
00031 #ifdef __cplusplus
00032
00033 #define APT_BEGIN_EXTERN_C extern "C" {
00034
00035 #define APT_END_EXTERN_C }
00036 #else
00037
00038 #define APT_BEGIN_EXTERN_C
00039
00040 #define APT_END_EXTERN_C
00041 #endif
00042
00043
00044 #ifdef WIN32
00045 #ifdef APT_STATIC_LIB
00046 #define APT_DECLARE(type) type __stdcall
00047 #else
00048 #ifdef APT_LIB_EXPORT
00049 #define APT_DECLARE(type) __declspec(dllexport) type __stdcall
00050 #else
00051 #define APT_DECLARE(type) __declspec(dllimport) type __stdcall
00052 #endif
00053 #endif
00054 #else
00055 #define APT_DECLARE(type) type
00056 #endif
00057
00058
00059 typedef int apt_bool_t;
00060
00061 #endif