]> granicus.if.org Git - apache/blob - include/ap_release.h
Vote, promote.
[apache] / include / ap_release.h
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 /**
18  * @file ap_release.h
19  * @brief Version Release defines
20  */
21
22 #ifndef AP_RELEASE_H
23 #define AP_RELEASE_H
24
25 #define AP_SERVER_COPYRIGHT \
26   "Copyright 2018 The Apache Software Foundation."
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_BASEPROJECT "Apache HTTP Server"
42 #define AP_SERVER_BASEPRODUCT "Apache"
43
44 #define AP_SERVER_MAJORVERSION_NUMBER 2
45 #define AP_SERVER_MINORVERSION_NUMBER 4
46 #define AP_SERVER_PATCHLEVEL_NUMBER   31
47 #define AP_SERVER_DEVBUILD_BOOLEAN    1
48
49 /* Synchronize the above with docs/manual/style/version.ent */
50
51 #if !AP_SERVER_DEVBUILD_BOOLEAN
52 #define AP_SERVER_ADD_STRING          ""
53 #else
54 #ifndef AP_SERVER_ADD_STRING
55 #define AP_SERVER_ADD_STRING          "-dev"
56 #endif
57 #endif
58
59 /* APR_STRINGIFY is defined here, and also in apr_general.h, so wrap it */
60 #ifndef APR_STRINGIFY
61 /** Properly quote a value as a string in the C preprocessor */
62 #define APR_STRINGIFY(n) APR_STRINGIFY_HELPER(n)
63 /** Helper macro for APR_STRINGIFY */
64 #define APR_STRINGIFY_HELPER(n) #n
65 #endif
66
67 /* keep old macros as well */
68 #define AP_SERVER_MAJORVERSION  APR_STRINGIFY(AP_SERVER_MAJORVERSION_NUMBER)
69 #define AP_SERVER_MINORVERSION  APR_STRINGIFY(AP_SERVER_MINORVERSION_NUMBER)
70 #define AP_SERVER_PATCHLEVEL    APR_STRINGIFY(AP_SERVER_PATCHLEVEL_NUMBER) \
71                                 AP_SERVER_ADD_STRING
72
73 #define AP_SERVER_MINORREVISION AP_SERVER_MAJORVERSION "." AP_SERVER_MINORVERSION
74 #define AP_SERVER_BASEREVISION  AP_SERVER_MINORREVISION "." AP_SERVER_PATCHLEVEL
75 #define AP_SERVER_BASEVERSION   AP_SERVER_BASEPRODUCT "/" AP_SERVER_BASEREVISION
76 #define AP_SERVER_VERSION       AP_SERVER_BASEVERSION
77
78 /* macro for Win32 .rc files using numeric csv representation */
79 #define AP_SERVER_PATCHLEVEL_CSV AP_SERVER_MAJORVERSION_NUMBER, \
80                                  AP_SERVER_MINORVERSION_NUMBER, \
81                                  AP_SERVER_PATCHLEVEL_NUMBER
82
83 #endif