RebaseDlg: Correctly remember commits for rewriting on Squash after (Edit|Squash...
[TortoiseGit.git] / ext / build / apr / apu.h
blob70d6a2ec3bc85a77c5b1cf2d0a0d179ab3cd32e7
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 /*
18 * apu.h is duplicated from apu.hw at build time -- do not edit apu.h
20 /* @file apu.h
21 * @brief APR-Utility main file
23 /**
24 * @defgroup APR_Util APR Utility Functions
25 * @{
29 #ifndef APU_H
30 #define APU_H
32 /**
33 * APU_DECLARE_EXPORT is defined when building the APR-UTIL dynamic library,
34 * so that all public symbols are exported.
36 * APU_DECLARE_STATIC is defined when including the APR-UTIL public headers,
37 * to provide static linkage when the dynamic library may be unavailable.
39 * APU_DECLARE_STATIC and APU_DECLARE_EXPORT are left undefined when
40 * including the APR-UTIL public headers, to import and link the symbols from
41 * the dynamic APR-UTIL library and assure appropriate indirection and calling
42 * conventions at compile time.
45 /* Make sure we have our platform identifier macro defined we ask for later.
47 #if defined(_WIN32) && !defined(WIN32)
48 #define WIN32 1
49 #endif
51 #if defined(DOXYGEN) || !defined(WIN32)
52 /**
53 * The public APR-UTIL functions are declared with APU_DECLARE(), so they may
54 * use the most appropriate calling convention. Public APR functions with
55 * variable arguments must use APU_DECLARE_NONSTD().
57 * @fn APU_DECLARE(rettype) apr_func(args);
59 #define APU_DECLARE(type) type
60 /**
61 * The public APR-UTIL functions using variable arguments are declared with
62 * APU_DECLARE_NONSTD(), as they must use the C language calling convention.
64 * @fn APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
66 #define APU_DECLARE_NONSTD(type) type
67 /**
68 * The public APR-UTIL variables are declared with APU_DECLARE_DATA.
69 * This assures the appropriate indirection is invoked at compile time.
71 * @fn APU_DECLARE_DATA type apr_variable;
72 * @note extern APU_DECLARE_DATA type apr_variable; syntax is required for
73 * declarations within headers to properly import the variable.
75 #define APU_DECLARE_DATA
76 #elif defined(APU_DECLARE_STATIC)
77 #define APU_DECLARE(type) type __stdcall
78 #define APU_DECLARE_NONSTD(type) type __cdecl
79 #define APU_DECLARE_DATA
80 #elif defined(APU_DECLARE_EXPORT)
81 #define APU_DECLARE(type) __declspec(dllexport) type __stdcall
82 #define APU_DECLARE_NONSTD(type) __declspec(dllexport) type __cdecl
83 #define APU_DECLARE_DATA __declspec(dllexport)
84 #else
85 #define APU_DECLARE(type) __declspec(dllimport) type __stdcall
86 #define APU_DECLARE_NONSTD(type) __declspec(dllimport) type __cdecl
87 #define APU_DECLARE_DATA __declspec(dllimport)
88 #endif
90 #if !defined(WIN32) || defined(APU_MODULE_DECLARE_STATIC)
91 /**
92 * Declare a dso module's exported module structure as APU_MODULE_DECLARE_DATA.
94 * Unless APU_MODULE_DECLARE_STATIC is defined at compile time, symbols
95 * declared with APU_MODULE_DECLARE_DATA are always exported.
96 * @code
97 * module APU_MODULE_DECLARE_DATA mod_tag
98 * @endcode
100 #define APU_MODULE_DECLARE_DATA
101 #else
102 #define APU_MODULE_DECLARE_DATA __declspec(dllexport)
103 #endif
106 * we always have SDBM (it's in our codebase)
108 #define APU_HAVE_SDBM 1
110 #ifndef APU_DSO_MODULE_BUILD
111 #define APU_HAVE_GDBM 0
112 #define APU_HAVE_NDBM 0
113 #define APU_HAVE_DB 0
115 #if APU_HAVE_DB
116 #define APU_HAVE_DB_VERSION 0
117 #endif
118 #endif
121 * we always enable dynamic driver loads within apr_dbd
122 * Win32 always has odbc (it's always installed)
124 #ifndef APU_DSO_MODULE_BUILD
125 #define APU_HAVE_PGSQL 0
126 #define APU_HAVE_MYSQL 0
127 #define APU_HAVE_SQLITE3 0
128 #define APU_HAVE_SQLITE2 0
129 #define APU_HAVE_ORACLE 0
130 #define APU_HAVE_ODBC 0
131 #endif
133 #define APU_HAVE_CRYPTO 0
135 #ifndef APU_DSO_MODULE_BUILD
136 #define APU_HAVE_OPENSSL 0
137 #define APU_HAVE_NSS 0
138 #define APU_HAVE_COMMONCRYPTO 0
139 #endif
141 #define APU_HAVE_APR_ICONV 0
142 #define APU_HAVE_ICONV 0
143 #define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
145 #endif /* APU_H */
146 /** @} */