~hexmode/+junk/main

« back to all changes in this revision

Viewing changes to install-files/bin/apache/apache2.2.6/include/apu.h

  • Committer: Mark A. Hershberger
  • Date: 2008-01-05 19:38:56 UTC
  • Revision ID: hershberger@spawn-xp-20080105193856-6rnzgwa4nehue3qj
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
 
2
 * applicable.
 
3
 *
 
4
 * Licensed under the Apache License, Version 2.0 (the "License");
 
5
 * you may not use this file except in compliance with the License.
 
6
 * You may obtain a copy of the License at
 
7
 *
 
8
 *     http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
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.
 
15
 */
 
16
 
 
17
/* 
 
18
 * Note: This is a Windows specific version of apu.h. It is renamed to
 
19
 * apu.h at the start of a Windows build.
 
20
 */
 
21
/* @file apu.h
 
22
 * @brief APR-Utility main file
 
23
 */
 
24
 
 
25
#ifdef WIN32
 
26
#ifndef APU_H
 
27
#define APU_H
 
28
/**
 
29
 * @defgroup APR_Util APR Utility Functions
 
30
 * @{
 
31
 */
 
32
 
 
33
 
 
34
/**
 
35
 * APU_DECLARE_EXPORT is defined when building the APR-UTIL dynamic library,
 
36
 * so that all public symbols are exported.
 
37
 *
 
38
 * APU_DECLARE_STATIC is defined when including the APR-UTIL public headers,
 
39
 * to provide static linkage when the dynamic library may be unavailable.
 
40
 *
 
41
 * APU_DECLARE_STATIC and APU_DECLARE_EXPORT are left undefined when
 
42
 * including the APR-UTIL public headers, to import and link the symbols from 
 
43
 * the dynamic APR-UTIL library and assure appropriate indirection and calling
 
44
 * conventions at compile time.
 
45
 */
 
46
 
 
47
#if defined(DOXYGEN) || !defined(WIN32)
 
48
/**
 
49
 * The public APR-UTIL functions are declared with APU_DECLARE(), so they may
 
50
 * use the most appropriate calling convention.  Public APR functions with 
 
51
 * variable arguments must use APU_DECLARE_NONSTD().
 
52
 *
 
53
 * @deffunc APU_DECLARE(rettype) apr_func(args);
 
54
 */
 
55
#define APU_DECLARE(type)            type
 
56
/**
 
57
 * The public APR-UTIL functions using variable arguments are declared with 
 
58
 * APU_DECLARE_NONSTD(), as they must use the C language calling convention.
 
59
 *
 
60
 * @deffunc APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
 
61
 */
 
62
#define APU_DECLARE_NONSTD(type)     type
 
63
/**
 
64
 * The public APR-UTIL variables are declared with APU_DECLARE_DATA.
 
65
 * This assures the appropriate indirection is invoked at compile time.
 
66
 *
 
67
 * @deffunc APU_DECLARE_DATA type apr_variable;
 
68
 * @tip extern APU_DECLARE_DATA type apr_variable; syntax is required for
 
69
 * declarations within headers to properly import the variable.
 
70
 */
 
71
#define APU_DECLARE_DATA
 
72
#elif defined(APU_DECLARE_STATIC)
 
73
#define APU_DECLARE(type)            type __stdcall
 
74
#define APU_DECLARE_NONSTD(type)     type __cdecl
 
75
#define APU_DECLARE_DATA
 
76
#elif defined(APU_DECLARE_EXPORT)
 
77
#define APU_DECLARE(type)            __declspec(dllexport) type __stdcall
 
78
#define APU_DECLARE_NONSTD(type)     __declspec(dllexport) type __cdecl
 
79
#define APU_DECLARE_DATA             __declspec(dllexport)
 
80
#else
 
81
#define APU_DECLARE(type)            __declspec(dllimport) type __stdcall
 
82
#define APU_DECLARE_NONSTD(type)     __declspec(dllimport) type __cdecl
 
83
#define APU_DECLARE_DATA             __declspec(dllimport)
 
84
#endif
 
85
/** @} */
 
86
/*
 
87
 * we always have SDBM (it's in our codebase)
 
88
 */
 
89
#define APU_HAVE_SDBM   1
 
90
#define APU_HAVE_GDBM   0
 
91
 
 
92
/* Allow external override */
 
93
#if !defined(APU_HAVE_DB)
 
94
#define APU_HAVE_DB     0
 
95
#endif
 
96
 
 
97
 
 
98
#define APU_HAVE_APR_ICONV     1
 
99
#define APU_HAVE_ICONV         0
 
100
#define APR_HAS_XLATE          (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
 
101
 
 
102
#if !defined(APU_HAVE_PGSQL)
 
103
#define APU_HAVE_PGSQL      0
 
104
#endif
 
105
#if !defined(APU_HAVE_SQLITE2)
 
106
#define APU_HAVE_SQLITE2    0
 
107
#endif
 
108
#if !defined(APU_HAVE_SQLITE3)
 
109
#define APU_HAVE_SQLITE3    0
 
110
#endif
 
111
 
 
112
#endif /* APU_H */
 
113
#endif /* WIN32 */