Apache Portable Runtime Utility Library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
apu_version.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 #ifndef APU_VERSION_H
18 #define APU_VERSION_H
19 
41 #define APU_COPYRIGHT "Copyright (c) 2000-2014 The Apache Software " \
42  "Foundation or its licensors, as applicable."
43 
44 /* The numeric compile-time version constants. These constants are the
45  * authoritative version numbers for APU.
46  */
47 
53 #define APU_MAJOR_VERSION 1
54 
59 #define APU_MINOR_VERSION 5
60 
65 #define APU_PATCH_VERSION 5
66 
72 #define APU_IS_DEV_VERSION
73 
74 
75 #if defined(APU_IS_DEV_VERSION) || defined(DOXYGEN)
76 
77 #ifndef APU_IS_DEV_STRING
78 #define APU_IS_DEV_STRING "-dev"
79 #endif
80 #else
81 #define APU_IS_DEV_STRING ""
82 #endif
83 
84 
85 #ifndef APU_STRINGIFY
86 
87 #define APU_STRINGIFY(n) APU_STRINGIFY_HELPER(n)
88 
89 #define APU_STRINGIFY_HELPER(n) #n
90 #endif
91 
93 #define APU_VERSION_STRING \
94  APU_STRINGIFY(APU_MAJOR_VERSION) "." \
95  APU_STRINGIFY(APU_MINOR_VERSION) "." \
96  APU_STRINGIFY(APU_PATCH_VERSION) \
97  APU_IS_DEV_STRING
98 
100 /* macro for Win32 .rc files using numeric csv representation */
101 #define APU_VERSION_STRING_CSV APU_MAJOR_VERSION ##, \
102  ##APU_MINOR_VERSION ##, \
103  ##APU_PATCH_VERSION
104 
105 
106 #ifndef APU_VERSION_ONLY
107 
108 /* The C language API to access the version at run time,
109  * as opposed to compile time. APU_VERSION_ONLY may be defined
110  * externally when preprocessing apr_version.h to obtain strictly
111  * the C Preprocessor macro declarations.
112  */
113 
114 #include "apr_version.h"
115 
116 #include "apu.h"
117 
118 #ifdef __cplusplus
119 extern "C" {
120 #endif
121 
128 APU_DECLARE(void) apu_version(apr_version_t *pvsn);
129 
131 APU_DECLARE(const char *) apu_version_string(void);
132 
133 #ifdef __cplusplus
134 }
135 #endif
136 
137 #endif /* ndef APU_VERSION_ONLY */
138 
139 #endif /* ndef APU_VERSION_H */
void apu_version(apr_version_t *pvsn)
const char * apu_version_string(void)