2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 /***************************************************************************
19 * Description: JK version header file *
20 * Version: $Revision: 1141394 $ *
21 ***************************************************************************/
23 #ifndef __JK_VERSION_H
24 #define __JK_VERSION_H
26 /************** START OF AREA TO MODIFY BEFORE RELEASING *************/
31 /* set JK_VERISRELEASE to 1 when release (do not forget to commit!) */
32 #define JK_VERISRELEASE 1
35 #define JK_BETASTRING "0"
36 /* Release candidate */
38 #define JK_RCSTRING "0"
39 /* Source Control Revision as a suffix, e.g. "-r12345" */
40 #define JK_REVISION " ()"
42 /************** END OF AREA TO MODIFY BEFORE RELEASING *************/
46 #define PACKAGE "isapi_redirector"
47 #define JK_DLL_SUFFIX "dll"
48 #elif defined(JK_NSAPI)
49 #define PACKAGE "nsapi_redirector"
50 #define JK_DLL_SUFFIX "dll"
52 #define PACKAGE "mod_jk"
53 #define JK_DLL_SUFFIX "so"
57 /* Build JK_EXPOSED_VERSION and JK_VERSION */
58 #define JK_EXPOSED_VERSION_INT PACKAGE "/" JK_VERSTRING
61 #define JK_EXPOSED_VERSION JK_EXPOSED_VERSION_INT "-beta-" JK_BETASTRING
64 #define JK_VERBETA 255
66 #define JK_EXPOSED_VERSION JK_EXPOSED_VERSION_INT "-rc-" JK_RCSTRING
67 #elif (JK_VERISRELEASE == 1)
68 #define JK_EXPOSED_VERSION JK_EXPOSED_VERSION_INT
70 #define JK_EXPOSED_VERSION JK_EXPOSED_VERSION_INT "-dev" JK_REVISION
73 #define JK_FULL_EXPOSED_VERSION JK_EXPOSED_VERSION JK_REVISION
75 #define JK_MAKEVERSION(major, minor, fix, beta) \
76 (((major) << 24) + ((minor) << 16) + ((fix) << 8) + (beta))
78 #define JK_VERSION JK_MAKEVERSION(JK_VERMAJOR, JK_VERMINOR, JK_VERFIX, JK_VERBETA)
80 /** Properly quote a value as a string in the C preprocessor */
81 #define JK_STRINGIFY(n) JK_STRINGIFY_HELPER(n)
82 /** Helper macro for JK_STRINGIFY */
83 #define JK_STRINGIFY_HELPER(n) #n
84 #define JK_VERSTRING \
85 JK_STRINGIFY(JK_VERMAJOR) "." \
86 JK_STRINGIFY(JK_VERMINOR) "." \
87 JK_STRINGIFY(JK_VERFIX)
89 /* macro for Win32 .rc files using numeric csv representation */
90 #define JK_VERSIONCSV JK_VERMAJOR ##, \
95 #endif /* __JK_VERSION_H */