mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 05:14:46 -04:00
visibility: align it to make it more readable
This commit is contained in:
parent
7707f6b03a
commit
bb6b53d031
@ -30,26 +30,21 @@
|
|||||||
#include <event2/event-config.h>
|
#include <event2/event-config.h>
|
||||||
|
|
||||||
#if defined(event_EXPORTS) || defined(event_extra_EXPORTS) || defined(event_core_EXPORTS)
|
#if defined(event_EXPORTS) || defined(event_extra_EXPORTS) || defined(event_core_EXPORTS)
|
||||||
|
# if defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550)
|
||||||
#if defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550)
|
# define EVENT2_EXPORT_SYMBOL __global
|
||||||
#define EVENT2_EXPORT_SYMBOL __global
|
# elif defined __GNUC__
|
||||||
#elif defined __GNUC__
|
# define EVENT2_EXPORT_SYMBOL __attribute__ ((visibility("default")))
|
||||||
#define EVENT2_EXPORT_SYMBOL __attribute__ ((visibility("default")))
|
# elif defined(_MSC_VER)
|
||||||
#elif defined(_MSC_VER)
|
# define EVENT2_EXPORT_SYMBOL extern __declspec(dllexport)
|
||||||
#define EVENT2_EXPORT_SYMBOL extern __declspec(dllexport)
|
# else
|
||||||
|
# define EVENT2_EXPORT_SYMBOL /* unknown compiler */
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
/* unknown compiler */
|
# if defined(EVENT__NEED_DLLIMPORT) && defined(_MSC_VER) && !defined(EVENT_BUILDING_REGRESS_TEST)
|
||||||
#define EVENT2_EXPORT_SYMBOL
|
# define EVENT2_EXPORT_SYMBOL extern __declspec(dllimport)
|
||||||
#endif
|
# else
|
||||||
|
# define EVENT2_EXPORT_SYMBOL
|
||||||
#else
|
# endif
|
||||||
|
|
||||||
#if defined(EVENT__NEED_DLLIMPORT) && defined(_MSC_VER) && !defined(EVENT_BUILDING_REGRESS_TEST)
|
|
||||||
#define EVENT2_EXPORT_SYMBOL extern __declspec(dllimport)
|
|
||||||
#else
|
|
||||||
#define EVENT2_EXPORT_SYMBOL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* EVENT2_VISIBILITY_H_INCLUDED_ */
|
#endif /* EVENT2_VISIBILITY_H_INCLUDED_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user