diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2009-12-17 18:51:24 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2009-12-17 18:51:24 +0000 |
commit | 046d779e566623c9d23b14d0a61ee5fa653d134b (patch) | |
tree | 799b4672783e7cc2f377cf977a78e8aedec044e9 /include/apr.h.in | |
parent | 14fe50d99d8e5c0a4a2a56e7406f5b5e04b4586a (diff) | |
download | apr-046d779e566623c9d23b14d0a61ee5fa653d134b.tar.gz |
Refactoring to drop apr_config.h, renamed APU_MODULE_DECLARE_DATA
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@891835 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr.h.in')
-rw-r--r-- | include/apr.h.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/apr.h.in b/include/apr.h.in index f808c232b..2ae564dea 100644 --- a/include/apr.h.in +++ b/include/apr.h.in @@ -435,6 +435,27 @@ typedef apr_uint32_t apr_uintptr_t; */ #define APR_DECLARE_DATA +#if !defined(WIN32) || defined(APU_MODULE_DECLARE_STATIC) +/** + * Declare a dso module's exported module structure as APR_MODULE_DECLARE_DATA. + * + * Unless APR_MODULE_DECLARE_STATIC is defined at compile time, symbols + * declared with APR_MODULE_DECLARE_DATA are always exported. + * @code + * module APR_MODULE_DECLARE_DATA mod_tag + * @endcode + */ +#define APR_MODULE_DECLARE_DATA +#else +#define APR_MODULE_DECLARE_DATA __declspec(dllexport) +#endif + +/** + * @deprecated + * @see APR_MODULE_DECLARE_DATA + */ +#define APU_MODULE_DECLARE_DATA APR_MODULE_DECLARE_DATA + /* Define APR_SSIZE_T_FMT. * If ssize_t is an integer we define it to be "d", * if ssize_t is a long int we define it to be "ld", |