Apache Portable Runtime
|
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 /* 00018 * apu.h is generated from apu.h.in by configure -- do not edit apu.h 00019 */ 00020 /* @file apu.h 00021 * @brief APR-Utility main file 00022 */ 00023 /** 00024 * @defgroup APR_Util APR Utility Functions 00025 * @{ 00026 */ 00027 00028 00029 #ifndef APU_H 00030 #define APU_H 00031 00032 /** 00033 * APU_DECLARE_EXPORT is defined when building the APR-UTIL dynamic library, 00034 * so that all public symbols are exported. 00035 * 00036 * APU_DECLARE_STATIC is defined when including the APR-UTIL public headers, 00037 * to provide static linkage when the dynamic library may be unavailable. 00038 * 00039 * APU_DECLARE_STATIC and APU_DECLARE_EXPORT are left undefined when 00040 * including the APR-UTIL public headers, to import and link the symbols from 00041 * the dynamic APR-UTIL library and assure appropriate indirection and calling 00042 * conventions at compile time. 00043 */ 00044 00045 /** 00046 * The public APR-UTIL functions are declared with APU_DECLARE(), so they may 00047 * use the most appropriate calling convention. Public APR functions with 00048 * variable arguments must use APU_DECLARE_NONSTD(). 00049 * 00050 * @fn APU_DECLARE(rettype) apr_func(args); 00051 */ 00052 #define APU_DECLARE(type) type 00053 /** 00054 * The public APR-UTIL functions using variable arguments are declared with 00055 * APU_DECLARE_NONSTD(), as they must use the C language calling convention. 00056 * 00057 * @fn APU_DECLARE_NONSTD(rettype) apr_func(args, ...); 00058 */ 00059 #define APU_DECLARE_NONSTD(type) type 00060 /** 00061 * The public APR-UTIL variables are declared with APU_DECLARE_DATA. 00062 * This assures the appropriate indirection is invoked at compile time. 00063 * 00064 * @fn APU_DECLARE_DATA type apr_variable; 00065 * @note APU_DECLARE_DATA extern type apr_variable; syntax is required for 00066 * declarations within headers to properly import the variable. 00067 */ 00068 #define APU_DECLARE_DATA 00069 00070 #if !defined(WIN32) || defined(APU_MODULE_DECLARE_STATIC) 00071 /** 00072 * Declare a dso module's exported module structure as APU_MODULE_DECLARE_DATA. 00073 * 00074 * Unless APU_MODULE_DECLARE_STATIC is defined at compile time, symbols 00075 * declared with APU_MODULE_DECLARE_DATA are always exported. 00076 * @code 00077 * module APU_MODULE_DECLARE_DATA mod_tag 00078 * @endcode 00079 */ 00080 #define APU_MODULE_DECLARE_DATA 00081 #else 00082 #define APU_MODULE_DECLARE_DATA __declspec(dllexport) 00083 #endif 00084 00085 /* 00086 * we always have SDBM (it's in our codebase) 00087 */ 00088 #define APU_HAVE_SDBM 1 00089 #define APU_HAVE_GDBM 0 00090 #define APU_HAVE_NDBM 0 00091 #define APU_HAVE_DB 1 00092 00093 #if APU_HAVE_DB 00094 #define APU_HAVE_DB_VERSION 4 00095 #endif 00096 00097 #define APU_HAVE_PGSQL 1 00098 #define APU_HAVE_MYSQL 1 00099 #define APU_HAVE_SQLITE3 1 00100 #define APU_HAVE_SQLITE2 0 00101 #define APU_HAVE_ORACLE 0 00102 #define APU_HAVE_FREETDS 1 00103 #define APU_HAVE_ODBC 1 00104 00105 #define APU_HAVE_APR_ICONV 0 00106 #define APU_HAVE_ICONV 1 00107 #define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV) 00108 00109 #endif /* APU_H */ 00110 /** @} */