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.
18
* apu.h is duplicated from apu.hw at build time -- do not edit apu.h
22
21
* @brief APR-Utility main file
24
* @defgroup APR_Util APR Utility Functions
29
* @defgroup APR_Util APR Utility Functions
35
33
* APU_DECLARE_EXPORT is defined when building the APR-UTIL dynamic library,
50
48
* use the most appropriate calling convention. Public APR functions with
51
49
* variable arguments must use APU_DECLARE_NONSTD().
53
* @deffunc APU_DECLARE(rettype) apr_func(args);
51
* @fn APU_DECLARE(rettype) apr_func(args);
55
53
#define APU_DECLARE(type) type
57
55
* The public APR-UTIL functions using variable arguments are declared with
58
56
* APU_DECLARE_NONSTD(), as they must use the C language calling convention.
60
* @deffunc APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
58
* @fn APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
62
60
#define APU_DECLARE_NONSTD(type) type
64
62
* The public APR-UTIL variables are declared with APU_DECLARE_DATA.
65
63
* This assures the appropriate indirection is invoked at compile time.
67
* @deffunc APU_DECLARE_DATA type apr_variable;
68
* @tip extern APU_DECLARE_DATA type apr_variable; syntax is required for
65
* @fn APU_DECLARE_DATA type apr_variable;
66
* @note extern APU_DECLARE_DATA type apr_variable; syntax is required for
69
67
* declarations within headers to properly import the variable.
71
69
#define APU_DECLARE_DATA
82
80
#define APU_DECLARE_NONSTD(type) __declspec(dllimport) type __cdecl
83
81
#define APU_DECLARE_DATA __declspec(dllimport)
84
#if !defined(WIN32) || defined(APU_MODULE_DECLARE_STATIC)
86
* Declare a dso module's exported module structure as APU_MODULE_DECLARE_DATA.
88
* Unless APU_MODULE_DECLARE_STATIC is defined at compile time, symbols
89
* declared with APU_MODULE_DECLARE_DATA are always exported.
91
* module APU_MODULE_DECLARE_DATA mod_tag
94
#define APU_MODULE_DECLARE_DATA
96
#define APU_MODULE_DECLARE_DATA __declspec(dllexport)
87
100
* we always have SDBM (it's in our codebase)
89
#define APU_HAVE_SDBM 1
90
#define APU_HAVE_NDBM 0
91
#define APU_HAVE_GDBM 0
102
#define APU_HAVE_SDBM 1
103
#define APU_HAVE_GDBM 0
104
#define APU_HAVE_NDBM 0
105
#define APU_HAVE_DB 0
95
#define APU_HAVE_DB_VERSION UNKNOWN
98
#define APU_HAVE_PGSQL 0
99
#define APU_HAVE_MYSQL 0
100
#define APU_HAVE_SQLITE2 0
101
#define APU_HAVE_SQLITE3 0
102
#define APU_HAVE_ORACLE 0
104
#define APU_HAVE_APR_ICONV 1
105
#define APU_HAVE_ICONV 0
106
#define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
108
#define APU_HAVE_DB_VERSION 0
111
#ifndef APU_DBD_DSO_BUILD
112
#define APU_HAVE_PGSQL 0
113
#define APU_HAVE_MYSQL 0
114
#define APU_HAVE_SQLITE3 0
115
#define APU_HAVE_SQLITE2 0
116
#define APU_HAVE_ORACLE 0
117
#define APU_HAVE_FREETDS 0
119
/* Windows always has ODBC */
120
#define APU_HAVE_ODBC 1
122
#define APU_HAVE_APR_ICONV 1
123
#define APU_HAVE_ICONV 0
124
#define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
108
126
#endif /* APU_H */