~ubuntu-branches/ubuntu/trusty/apr-util/trusty

« back to all changes in this revision

Viewing changes to include/apu.hw

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Niebur
  • Date: 2009-03-26 22:25:48 UTC
  • mto: (4.1.1 squeeze) (20.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20090326222548-v103269kb84vo0ub
Tags: upstream-1.3.4+dfsg
ImportĀ upstreamĀ versionĀ 1.3.4+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 */
16
16
 
17
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.
 
18
 * apu.h is duplicated from apu.hw at build time -- do not edit apu.h
20
19
 */
21
20
/* @file apu.h
22
21
 * @brief APR-Utility main file
23
22
 */
24
 
 
25
 
#ifdef WIN32
 
23
/**
 
24
 * @defgroup APR_Util APR Utility Functions
 
25
 * @{
 
26
 */
 
27
 
 
28
 
26
29
#ifndef APU_H
27
30
#define APU_H
28
 
/**
29
 
 * @defgroup APR_Util APR Utility Functions
30
 
 * @{
31
 
 */
32
 
 
33
31
 
34
32
/**
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().
52
50
 *
53
 
 * @deffunc APU_DECLARE(rettype) apr_func(args);
 
51
 * @fn APU_DECLARE(rettype) apr_func(args);
54
52
 */
55
53
#define APU_DECLARE(type)            type
56
54
/**
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.
59
57
 *
60
 
 * @deffunc APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
 
58
 * @fn APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
61
59
 */
62
60
#define APU_DECLARE_NONSTD(type)     type
63
61
/**
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.
66
64
 *
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.
70
68
 */
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
82
#endif
85
 
/** @} */
 
83
 
 
84
#if !defined(WIN32) || defined(APU_MODULE_DECLARE_STATIC)
 
85
/**
 
86
 * Declare a dso module's exported module structure as APU_MODULE_DECLARE_DATA.
 
87
 *
 
88
 * Unless APU_MODULE_DECLARE_STATIC is defined at compile time, symbols 
 
89
 * declared with APU_MODULE_DECLARE_DATA are always exported.
 
90
 * @code
 
91
 * module APU_MODULE_DECLARE_DATA mod_tag
 
92
 * @endcode
 
93
 */
 
94
#define APU_MODULE_DECLARE_DATA
 
95
#else
 
96
#define APU_MODULE_DECLARE_DATA           __declspec(dllexport)
 
97
#endif
 
98
 
86
99
/*
87
100
 * we always have SDBM (it's in our codebase)
88
101
 */
89
 
#define APU_HAVE_SDBM   1
90
 
#define APU_HAVE_NDBM   0
91
 
#define APU_HAVE_GDBM   0
92
 
#define APU_HAVE_DB     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
93
106
 
94
107
#if APU_HAVE_DB
95
 
#define APU_HAVE_DB_VERSION    UNKNOWN
96
 
#endif
97
 
 
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
103
 
 
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
 
109
#endif
 
110
 
 
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
 
118
#endif
 
119
/* Windows always has ODBC */
 
120
#define APU_HAVE_ODBC           1
 
121
 
 
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)
107
125
 
108
126
#endif /* APU_H */
109
 
#endif /* WIN32 */
 
127
/** @} */