]> granicus.if.org Git - apache/blob - include/ap_release.h
fc43c453c204578e5887fa0e2a79226d2658900d
[apache] / include / ap_release.h
1 /* Copyright 2001-2005 The Apache Software Foundation or its licensors, as
2  * applicable.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * 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 AP_RELEASE_H
18 #define AP_RELEASE_H
19
20 /* The numeric compile-time version constants. These constants are the
21  * authoritative version numbers for APR. 
22  */
23 /** Properly quote a value as a string in the C preprocessor */
24 #define AP_STRINGIFY(n) AP_STRINGIFY_HELPER(n)
25 /** Helper macro for AP_STRINGIFY */
26 #define AP_STRINGIFY_HELPER(n) #n
27
28 /*
29  * The below defines the base string of the Server: header. Additional
30  * tokens can be added via the ap_add_version_component() API call.
31  *
32  * The tokens are listed in order of their significance for identifying the
33  * application.
34  *
35  * "Product tokens should be short and to the point -- use of them for 
36  * advertizing or other non-essential information is explicitly forbidden."
37  *
38  * Example: "Apache/1.1.0 MrWidget/0.1-alpha" 
39  */
40 #define AP_SERVER_BASEVENDOR "Apache Software Foundation"
41 #define AP_SERVER_BASEPRODUCT "Apache"
42
43 #define AP_SERVER_MAJORVERSION_NUMBER 2
44 #define AP_SERVER_MINORVERSION_NUMBER 1
45 #define AP_SERVER_PATCHLEVEL_NUMBER   6
46 #define AP_SERVER_DEVBUILD_BOOLEAN    1
47
48 #if AP_SERVER_DEVBUILD_BOOLEAN
49 #define AP_SERVER_ADD_STRING          "-dev"
50 #else
51 #define AP_SERVER_ADD_STRING          ""
52 #endif
53
54 /* keep old macros as well */
55 #define AP_SERVER_MAJORVERSION  AP_STRINGIFY(AP_SERVER_MAJORVERSION_NUMBER)
56 #define AP_SERVER_MINORVERSION  AP_STRINGIFY(AP_SERVER_MINORVERSION_NUMBER)
57 #define AP_SERVER_PATCHLEVEL    AP_STRINGIFY(AP_SERVER_PATCHLEVEL_NUMBER) \
58                                 AP_SERVER_ADD_STRING
59
60 #define AP_SERVER_MINORREVISION AP_SERVER_MAJORVERSION "." AP_SERVER_MINORVERSION
61 #define AP_SERVER_BASEREVISION  AP_SERVER_MINORREVISION "." AP_SERVER_PATCHLEVEL
62 #define AP_SERVER_BASEVERSION   AP_SERVER_BASEPRODUCT "/" AP_SERVER_BASEREVISION
63 #define AP_SERVER_VERSION       AP_SERVER_BASEVERSION
64
65 /* macro for Win32 .rc files using numeric csv representation */
66 #define AP_SERVER_PATCHLEVEL_CSV AP_SERVER_MAJORVERSION_NUMBER ##, \
67                                ##AP_SERVER_MINORVERSION_NUMBER ##, \
68                                ##AP_SERVER_PATCHLEVEL_NUMBER
69
70 #endif