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
8
* http://www.apache.org/licenses/LICENSE-2.0
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.
20
* @version $Revision: 711832 $, $Date: 2008-11-06 11:24:56 +0100 (Thu, 06 Nov 2008) $
26
#include "apr_version.h"
38
* Tomcat Native Version
40
* There are several different mechanisms for accessing the version. There
41
* is a string form, and a set of numbers; in addition, there are constants
42
* which can be compiled into your application, and you can query the library
43
* being used for its actual version.
45
* Note that it is possible for an application to detect that it has been
46
* compiled against a different version of APU by use of the compile-time
47
* constants and the use of the run-time query function.
49
* TCN version numbering follows the guidelines specified in:
51
* http://apr.apache.org/versioning.html
54
/* The numeric compile-time version constants. These constants are the
55
* authoritative version numbers for TCN.
59
* Major API changes that could cause compatibility problems for older
60
* programs such as structure size changes. No binary compatibility is
61
* possible across a change in the major version.
63
#define TCN_MAJOR_VERSION 1
66
* Minor API changes that do not cause binary compatibility problems.
67
* Should be reset to 0 when upgrading TCN_MAJOR_VERSION
69
#define TCN_MINOR_VERSION 1
72
#define TCN_PATCH_VERSION 17
75
* This symbol is defined for internal, "development" copies of TCN. This
76
* symbol will be #undef'd for releases.
78
#define TCN_IS_DEV_VERSION 1
81
/** The formatted string of APU's version */
82
#define TCN_VERSION_STRING \
83
APR_STRINGIFY(TCN_MAJOR_VERSION) "."\
84
APR_STRINGIFY(TCN_MINOR_VERSION) "."\
85
APR_STRINGIFY(TCN_PATCH_VERSION)\
88
/** Internal: string form of the "is dev" flag */
89
#if TCN_IS_DEV_VERSION
90
#define TCN_IS_DEV_STRING "-dev"
92
#define TCN_IS_DEV_STRING ""
99
#endif /* TCN_VERSION_H */