Go to the documentation of this file.
19 #ifndef __AFW_LMDB_DECLARE_HELPERS_H__
20 #define __AFW_LMDB_DECLARE_HELPERS_H__
29 #include <apr_general.h>
37 #define AFW_LMDB_BEGIN_DECLARES extern "C" {
38 #define AFW_LMDB_END_DECLARES }
40 #define AFW_LMDB_BEGIN_DECLARES
41 #define AFW_LMDB_END_DECLARES
46 #if defined(DOXYGEN) || !defined(WIN32)
47 #define AFW_LMDB_DECLSPEC_DECLARE extern
48 #define AFW_LMDB_DECLSPEC_DEFINE
49 #define AFW_LMDB_CALLING_CONVENTION
50 #define AFW_LMDB_CALLING_CONVENTION_ELLIPSIS
51 #elif defined(AFW_LMDB_DECLARE_STATIC)
52 #define AFW_LMDB_DECLSPEC_DECLARE extern
53 #define AFW_LMDB_DECLSPEC_DEFINE
54 #define AFW_LMDB_CALLING_CONVENTION __stdcall
55 #define AFW_LMDB_CALLING_CONVENTION_ELLIPSIS __cdecl
56 #elif defined(AFW_LMDB_DECLARE_EXPORT)
57 #define AFW_LMDB_DECLSPEC_DECLARE extern __declspec(dllexport)
58 #define AFW_LMDB_DECLSPEC_DEFINE __declspec(dllexport)
59 #define AFW_LMDB_CALLING_CONVENTION __stdcall
60 #define AFW_LMDB_CALLING_CONVENTION_ELLIPSIS __cdecl
62 #define AFW_LMDB_DECLSPEC_DECLARE extern __declspec(dllimport)
63 #define AFW_LMDB_DECLSPEC_DEFINE __declspec(dllimport)
64 #define AFW_LMDB_CALLING_CONVENTION __stdcall
65 #define AFW_LMDB_CALLING_CONVENTION_ELLIPSIS __cdecl
80 #define AFW_LMDB_DECLARE_INTERNAL_CONST_DATA(type) extern const type
94 #define AFW_LMDB_DEFINE_INTERNAL_CONST_DATA(type) const type
108 #define AFW_LMDB_DECLARE_INTERNAL(type) extern type
122 #define AFW_LMDB_DEFINE_INTERNAL(type) type
141 #define AFW_LMDB_DECLARE(type) \
142 AFW_LMDB_DECLSPEC_DECLARE \
144 AFW_LMDB_CALLING_CONVENTION
164 #define AFW_LMDB_DECLARE_ELLIPSIS(type) \
165 AFW_LMDB_DECLSPEC_DECLARE \
167 AFW_LMDB_CALLING_CONVENTION_ELLIPSIS
187 #define AFW_LMDB_DECLARE_CONST_DATA(type) \
188 AFW_LMDB_DECLSPEC_DECLARE \
209 #define AFW_LMDB_DEFINE(type) \
210 AFW_LMDB_DECLSPEC_DEFINE \
212 AFW_LMDB_CALLING_CONVENTION
232 #define AFW_LMDB_DEFINE_ELLIPSIS(type) \
233 AFW_LMDB_DECLSPEC_DEFINE \
235 AFW_LMDB_CALLING_CONVENTION_ELLIPSIS
255 #define AFW_LMDB_DEFINE_CONST_DATA(type) \
256 AFW_LMDB_DECLSPEC_DEFINE \
260 #define AFW_LMDB_CALLBACK \
261 AFW_LMDB_CALLING_CONVENTION
264 #define AFW_LMDB_CALLBACK_ELLIPSIS \
265 AFW_LMDB_CALLING_CONVENTION_ELLIPSIS
269 #define AFW_LMDB_DEFINE_DSO(type) __declspec(dllexport) type
271 #define AFW_LMDB_DEFINE_DSO(type) type
275 #ifdef AFW_LMDB_DISABLE_INLINE
276 #define AFW_LMDB_HAS_INLINE 0
277 #define AFW_LMDB_INLINE
279 #define AFW_LMDB_HAS_INLINE APR_HAS_INLINE
280 #define AFW_LMDB_INLINE APR_INLINE
285 #define AFW_LMDB_STATIC_INLINE static AFW_LMDB_INLINE
287 #define AFW_LMDB_DECLARE_STATIC(type) static type
290 #define AFW_LMDB_DEFINE_STATIC_INLINE(type) type
292 #define AFW_LMDB_DEFINE_STATIC_INLINE(type) AFW_LMDB_STATIC_INLINE type