GME  13
apu.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 /* 
00018  * apu.h is duplicated from apu.hw at build time -- do not edit apu.h
00019  */
00020 /* @file apu.h
00021  * @brief APR-Utility main file
00022  */
00029 #ifndef APU_H
00030 #define APU_H
00031 
00045 #if defined(DOXYGEN) || !defined(WIN32)
00046 
00053 #define APU_DECLARE(type)            type
00054 
00060 #define APU_DECLARE_NONSTD(type)     type
00061 
00069 #define APU_DECLARE_DATA
00070 #elif defined(APU_DECLARE_STATIC)
00071 #define APU_DECLARE(type)            type __stdcall
00072 #define APU_DECLARE_NONSTD(type)     type __cdecl
00073 #define APU_DECLARE_DATA
00074 #elif defined(APU_DECLARE_EXPORT)
00075 #define APU_DECLARE(type)            __declspec(dllexport) type __stdcall
00076 #define APU_DECLARE_NONSTD(type)     __declspec(dllexport) type __cdecl
00077 #define APU_DECLARE_DATA             __declspec(dllexport)
00078 #else
00079 #define APU_DECLARE(type)            __declspec(dllimport) type __stdcall
00080 #define APU_DECLARE_NONSTD(type)     __declspec(dllimport) type __cdecl
00081 #define APU_DECLARE_DATA             __declspec(dllimport)
00082 #endif
00083 
00084 #if !defined(WIN32) || defined(APU_MODULE_DECLARE_STATIC)
00085 
00094 #define APU_MODULE_DECLARE_DATA
00095 #else
00096 #define APU_MODULE_DECLARE_DATA           __declspec(dllexport)
00097 #endif
00098 
00099 /*
00100  * we always have SDBM (it's in our codebase)
00101  */
00102 #define APU_HAVE_SDBM           1
00103 
00104 #ifndef APU_DSO_MODULE_BUILD
00105 #define APU_HAVE_GDBM           0
00106 #define APU_HAVE_NDBM           0
00107 #define APU_HAVE_DB             0
00108 
00109 #if APU_HAVE_DB
00110 #define APU_HAVE_DB_VERSION     0
00111 #endif
00112 #endif
00113 
00114 /* 
00115  * we always enable dynamic driver loads within apr_dbd
00116  * Win32 always has odbc (it's always installed)
00117  */
00118 #ifndef APU_DSO_MODULE_BUILD
00119 #define APU_HAVE_PGSQL          0
00120 #define APU_HAVE_MYSQL          0
00121 #define APU_HAVE_SQLITE3        0
00122 #define APU_HAVE_SQLITE2        0
00123 #define APU_HAVE_ORACLE         0
00124 #define APU_HAVE_FREETDS        0
00125 #define APU_HAVE_ODBC           1
00126 #endif
00127 
00128 #define APU_HAVE_CRYPTO         0
00129 
00130 #ifndef APU_DSO_MODULE_BUILD
00131 #define APU_HAVE_OPENSSL        0
00132 #define APU_HAVE_NSS            0
00133 #endif
00134 
00135 #define APU_HAVE_APR_ICONV      1
00136 #define APU_HAVE_ICONV          0
00137 #define APR_HAS_XLATE           (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
00138 
00139 #endif /* APU_H */
00140