Apache Portable Runtime Utility Library
Loading...
Searching...
No Matches
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
39
40
41#define APU_COPYRIGHT "Copyright 2026 The Apache Software Foundation."
42
43/* The numeric compile-time version constants. These constants are the
44 * authoritative version numbers for APU.
45 */
46
52#define APU_MAJOR_VERSION 1
53
58#define APU_MINOR_VERSION 6
59
64#define APU_PATCH_VERSION 4
65
71/* #undef APU_IS_DEV_VERSION */
72
73
74#if defined(APU_IS_DEV_VERSION) || defined(DOXYGEN)
76#ifndef APU_IS_DEV_STRING
77#define APU_IS_DEV_STRING "-dev"
78#endif
79#else
80#define APU_IS_DEV_STRING ""
81#endif
82
83
84#ifndef APU_STRINGIFY
86#define APU_STRINGIFY(n) APU_STRINGIFY_HELPER(n)
88#define APU_STRINGIFY_HELPER(n) #n
89#endif
90
92#define APU_VERSION_STRING \
93 APU_STRINGIFY(APU_MAJOR_VERSION) "." \
94 APU_STRINGIFY(APU_MINOR_VERSION) "." \
95 APU_STRINGIFY(APU_PATCH_VERSION) \
96 APU_IS_DEV_STRING
97
99/* macro for Win32 .rc files using numeric csv representation */
100#define APU_VERSION_STRING_CSV APU_MAJOR_VERSION ##, \
101 ##APU_MINOR_VERSION ##, \
102 ##APU_PATCH_VERSION
103
104
105#ifndef APU_VERSION_ONLY
106
107/* The C language API to access the version at run time,
108 * as opposed to compile time. APU_VERSION_ONLY may be defined
109 * externally when preprocessing apr_version.h to obtain strictly
110 * the C Preprocessor macro declarations.
111 */
112
113#include "apr_version.h"
114
115#include "apu.h"
116
117#ifdef __cplusplus
118extern "C" {
119#endif
120
127APU_DECLARE(void) apu_version(apr_version_t *pvsn);
128
130APU_DECLARE(const char *) apu_version_string(void);
131
132#ifdef __cplusplus
133}
134#endif
135
136#endif /* ndef APU_VERSION_ONLY */
137
138#endif /* ndef APU_VERSION_H */
void apu_version(apr_version_t *pvsn)
const char * apu_version_string(void)