From: Azat Khuzhin Date: Mon, 11 Jan 2016 22:35:46 +0000 (+0300) Subject: visibility: align it to make it more readable X-Git-Tag: release-2.1.6-beta~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb6b53d031f19b80a590b94513328cdd55f63968;p=libevent visibility: align it to make it more readable --- diff --git a/include/event2/visibility.h b/include/event2/visibility.h index 5e7163a1..fb16dbee 100644 --- a/include/event2/visibility.h +++ b/include/event2/visibility.h @@ -30,26 +30,21 @@ #include #if defined(event_EXPORTS) || defined(event_extra_EXPORTS) || defined(event_core_EXPORTS) - -#if defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550) -#define EVENT2_EXPORT_SYMBOL __global -#elif defined __GNUC__ -#define EVENT2_EXPORT_SYMBOL __attribute__ ((visibility("default"))) -#elif defined(_MSC_VER) -#define EVENT2_EXPORT_SYMBOL extern __declspec(dllexport) -#else -/* unknown compiler */ -#define EVENT2_EXPORT_SYMBOL -#endif - +# if defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550) +# define EVENT2_EXPORT_SYMBOL __global +# elif defined __GNUC__ +# define EVENT2_EXPORT_SYMBOL __attribute__ ((visibility("default"))) +# elif defined(_MSC_VER) +# define EVENT2_EXPORT_SYMBOL extern __declspec(dllexport) +# else +# define EVENT2_EXPORT_SYMBOL /* unknown compiler */ +# endif #else - -#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 - +# 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 /* EVENT2_VISIBILITY_H_INCLUDED_ */