1 /* Copyright 2000-2004 The Apache Software Foundation
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
17 * Note: This is a NetWare specific version of apu.h. It is renamed to
18 * apu.h at the start of a NetWare build.
21 * @brief APR-Utility main file
24 * @defgroup APR_Util APR Utility Functions
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.
46 * The public APR-UTIL functions are declared with APU_DECLARE(), so they may
47 * use the most appropriate calling convention. Public APR functions with
48 * variable arguments must use APU_DECLARE_NONSTD().
50 * @deffunc APU_DECLARE(rettype) apr_func(args);
52 #define APU_DECLARE(type) type
54 * The public APR-UTIL functions using variable arguments are declared with
55 * APU_DECLARE_NONSTD(), as they must use the C language calling convention.
57 * @deffunc APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
59 #define APU_DECLARE_NONSTD(type) type
61 * The public APR-UTIL variables are declared with APU_DECLARE_DATA.
62 * This assures the appropriate indirection is invoked at compile time.
64 * @deffunc APU_DECLARE_DATA type apr_variable;
65 * @tip APU_DECLARE_DATA extern type apr_variable; syntax is required for
66 * declarations within headers to properly import the variable.
68 #define APU_DECLARE_DATA
70 * we always have SDBM (it's in our codebase)
72 #define APU_HAVE_SDBM 1
73 #define APU_HAVE_GDBM 0
77 #define HAVE_ICONV_H 1
78 #define APU_HAVE_APR_ICONV 0
79 #define APU_HAVE_ICONV 1
80 #define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
83 * check for newer NDKs which use now correctly 'const char*' with iconv.
86 #if (CURRENT_NDK_THRESHOLD >= 705110000)
87 #define APU_ICONV_INBUF_CONST