Apache Portable Runtime Utility Library

include/apu_version.h

Go to the documentation of this file.
00001 /* Licensed to the Apache Software Foundation (ASF) under one or more
00002  * contributor license agreements.  See the NOTICE file distributed with
00003  * this work for additional information regarding copyright ownership.
00004  * The ASF licenses this file to You under the Apache License, Version 2.0
00005  * (the "License"); you may not use this file except in compliance with
00006  * the License.  You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef APU_VERSION_H
00018 #define APU_VERSION_H
00019 
00041 #define APU_COPYRIGHT "Copyright (c) 2000-2016 The Apache Software " \
00042                       "Foundation or its licensors, as applicable."
00043 
00044 /* The numeric compile-time version constants. These constants are the
00045  * authoritative version numbers for APU. 
00046  */
00047 
00053 #define APU_MAJOR_VERSION       1
00054 
00059 #define APU_MINOR_VERSION       6
00060 
00065 #define APU_PATCH_VERSION       1
00066 
00072 /* #undef APU_IS_DEV_VERSION */
00073 
00074 
00075 #if defined(APU_IS_DEV_VERSION) || defined(DOXYGEN)
00076 
00077 #ifndef APU_IS_DEV_STRING
00078 #define APU_IS_DEV_STRING "-dev"
00079 #endif
00080 #else
00081 #define APU_IS_DEV_STRING ""
00082 #endif
00083 
00084 
00085 #ifndef APU_STRINGIFY
00086 
00087 #define APU_STRINGIFY(n) APU_STRINGIFY_HELPER(n)
00088 
00089 #define APU_STRINGIFY_HELPER(n) #n
00090 #endif
00091 
00093 #define APU_VERSION_STRING \
00094      APU_STRINGIFY(APU_MAJOR_VERSION) "." \
00095      APU_STRINGIFY(APU_MINOR_VERSION) "." \
00096      APU_STRINGIFY(APU_PATCH_VERSION) \
00097      APU_IS_DEV_STRING
00098 
00100 /* macro for Win32 .rc files using numeric csv representation */
00101 #define APU_VERSION_STRING_CSV APU_MAJOR_VERSION ##, \
00102                              ##APU_MINOR_VERSION ##, \
00103                              ##APU_PATCH_VERSION
00104 
00105 
00106 #ifndef APU_VERSION_ONLY
00107 
00108 /* The C language API to access the version at run time, 
00109  * as opposed to compile time.  APU_VERSION_ONLY may be defined 
00110  * externally when preprocessing apr_version.h to obtain strictly 
00111  * the C Preprocessor macro declarations.
00112  */
00113 
00114 #include "apr_version.h"
00115 
00116 #include "apu.h"
00117 
00118 #ifdef __cplusplus
00119 extern "C" {
00120 #endif
00121 
00128 APU_DECLARE(void) apu_version(apr_version_t *pvsn);
00129 
00131 APU_DECLARE(const char *) apu_version_string(void);
00132 
00133 #ifdef __cplusplus
00134 }
00135 #endif
00136 
00137 #endif /* ndef APU_VERSION_ONLY */
00138 
00139 #endif /* ndef APU_VERSION_H */
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines