00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef APR_VERSION_H
00018 #define APR_VERSION_H
00019
00041
00042
00043
00044
00050 #define APR_MAJOR_VERSION 1
00051
00056 #define APR_MINOR_VERSION 2
00057
00062 #define APR_PATCH_VERSION 7
00063
00069 #undef APR_IS_DEV_VERSION
00070
00071
00072 #if defined(APR_IS_DEV_VERSION) || defined(DOXYGEN)
00073
00074 #define APR_IS_DEV_STRING "-dev"
00075 #else
00076 #define APR_IS_DEV_STRING ""
00077 #endif
00078
00079
00080 #ifndef APR_STRINGIFY
00081
00082 #define APR_STRINGIFY(n) APR_STRINGIFY_HELPER(n)
00083
00084 #define APR_STRINGIFY_HELPER(n) #n
00085 #endif
00086
00088 #define APR_VERSION_STRING \
00089 APR_STRINGIFY(APR_MAJOR_VERSION) "." \
00090 APR_STRINGIFY(APR_MINOR_VERSION) "." \
00091 APR_STRINGIFY(APR_PATCH_VERSION) \
00092 APR_IS_DEV_STRING
00093
00095
00096 #define APR_VERSION_STRING_CSV APR_MAJOR_VERSION ##, \
00097 ##APR_MINOR_VERSION ##, \
00098 ##APR_PATCH_VERSION
00099
00100
00101 #ifndef APR_VERSION_ONLY
00102
00103
00104
00105
00106
00107
00108
00109 #include "apr.h"
00110
00111 #ifdef __cplusplus
00112 extern "C" {
00113 #endif
00114
00119 typedef struct {
00120 int major;
00121 int minor;
00122 int patch;
00123 int is_dev;
00124 } apr_version_t;
00125
00132 APR_DECLARE(void) apr_version(apr_version_t *pvsn);
00133
00135 APR_DECLARE(const char *) apr_version_string(void);
00136
00137 #ifdef __cplusplus
00138 }
00139 #endif
00140
00141 #endif
00142
00143 #endif