Main Page | Modules | Namespace List | Data Structures | File List | Data Fields | Globals | Related Pages

apu_version.h

Go to the documentation of this file.
00001 /* Copyright 2000-2004 The Apache Software Foundation
00002  *
00003  * Licensed under the Apache License, Version 2.0 (the "License");
00004  * you may not use this file except in compliance with the License.
00005  * You may obtain a copy of the License at
00006  *
00007  *     http://www.apache.org/licenses/LICENSE-2.0
00008  *
00009  * Unless required by applicable law or agreed to in writing, software
00010  * distributed under the License is distributed on an "AS IS" BASIS,
00011  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00012  * See the License for the specific language governing permissions and
00013  * limitations under the License.
00014  */
00015 
00016 #ifndef APU_VERSION_H
00017 #define APU_VERSION_H
00018 
00040 /* The numeric compile-time version constants. These constants are the
00041  * authoritative version numbers for APU. 
00042  */
00043 
00049 #define APU_MAJOR_VERSION       1
00050 
00055 #define APU_MINOR_VERSION       1
00056 
00061 #define APU_PATCH_VERSION       2
00062 
00068 /* #define APU_IS_DEV_VERSION */
00069 
00070 
00071 #if defined(APU_IS_DEV_VERSION) || defined(DOXYGEN)
00072 
00073 #define APU_IS_DEV_STRING "-dev"
00074 #else
00075 #define APU_IS_DEV_STRING ""
00076 #endif
00077 
00078 
00079 #ifndef APU_STRINGIFY
00080 
00081 #define APU_STRINGIFY(n) APU_STRINGIFY_HELPER(n)
00082 
00083 #define APU_STRINGIFY_HELPER(n) #n
00084 #endif
00085 
00087 #define APU_VERSION_STRING \
00088      APU_STRINGIFY(APU_MAJOR_VERSION) "." \
00089      APU_STRINGIFY(APU_MINOR_VERSION) "." \
00090      APU_STRINGIFY(APU_PATCH_VERSION) \
00091      APU_IS_DEV_STRING
00092 
00094 /* macro for Win32 .rc files using numeric csv representation */
00095 #define APU_VERSION_STRING_CSV APU_MAJOR_VERSION ##, \
00096                              ##APU_MINOR_VERSION ##, \
00097                              ##APU_PATCH_VERSION
00098 
00099 
00100 #ifndef APU_VERSION_ONLY
00101 
00102 /* The C language API to access the version at run time, 
00103  * as opposed to compile time.  APU_VERSION_ONLY may be defined 
00104  * externally when preprocessing apr_version.h to obtain strictly 
00105  * the C Preprocessor macro declarations.
00106  */
00107 
00108 #include "apr_version.h"
00109 
00110 #include "apu.h"
00111 
00112 #ifdef __cplusplus
00113 extern "C" {
00114 #endif
00115 
00122 APU_DECLARE(void) apu_version(apr_version_t *pvsn);
00123 
00125 APU_DECLARE(const char *) apu_version_string(void);
00126 
00127 #ifdef __cplusplus
00128 }
00129 #endif
00130 
00131 #endif /* ndef APU_VERSION_ONLY */
00132 
00133 #endif /* ndef APU_VERSION_H */

Generated on Sun Mar 20 20:00:15 2005 for Apache Portable Runtime Utility Library by  doxygen 1.3.9.1