mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Fix visibility issues under (mostly on win32)
Refs: #511 Fixes: 7182c2f561570cd9ceb704623ebe9ae3608c7b43 ("cmake: build SHARED and STATIC libraries (like autoconf does)") (cherry picked from commit ce3af533f1b11c4b302d404483f28660eb5d7190)
This commit is contained in:
parent
6f74954017
commit
a1f28e2f9c
@ -40,25 +40,15 @@
|
||||
# elif defined __GNUC__
|
||||
# define EVENT2_EXPORT_SYMBOL __attribute__ ((visibility("default")))
|
||||
# elif defined(_MSC_VER)
|
||||
# define EVENT2_EXPORT_SYMBOL extern __declspec(dllexport)
|
||||
# define EVENT2_EXPORT_SYMBOL __declspec(dllexport)
|
||||
# else
|
||||
# define EVENT2_EXPORT_SYMBOL /* unknown compiler */
|
||||
# endif
|
||||
|
||||
#else /* event_*_EXPORTS */
|
||||
|
||||
# if defined(_MSC_VER)
|
||||
# define EVENT2_EXPORT_SYMBOL extern __declspec(dllimport)
|
||||
# else
|
||||
# define EVENT2_EXPORT_SYMBOL
|
||||
# endif
|
||||
# define EVENT2_EXPORT_SYMBOL
|
||||
|
||||
#endif /* event_*_EXPORTS */
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# define EVENT2_EXPORT_SYMBOL_DECL __declspec(dllimport)
|
||||
#else
|
||||
# define EVENT2_EXPORT_SYMBOL_DECL extern
|
||||
#endif
|
||||
|
||||
#endif /* EVENT2_VISIBILITY_H_INCLUDED_ */
|
||||
|
@ -48,8 +48,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef EVENT_DEBUG_LOGGING_ENABLED
|
||||
EVENT2_EXPORT_SYMBOL_DECL
|
||||
ev_uint32_t event_debug_logging_mask_;
|
||||
EVENT2_EXPORT_SYMBOL extern ev_uint32_t event_debug_logging_mask_;
|
||||
#define event_debug_get_logging_mask_() (event_debug_logging_mask_)
|
||||
#else
|
||||
#define event_debug_get_logging_mask_() (0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user