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.hnw | |
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.hnw')
-rw-r--r-- | include/apr.hnw | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/apr.hnw b/include/apr.hnw index 2e72353c7..c3dda1e71 100644 --- a/include/apr.hnw +++ b/include/apr.hnw @@ -410,6 +410,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 "d" #define APR_SIZE_T_FMT "d" |