From bd49400623df0ec1cd3a24496ae31efff7ea285f Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 29 Jul 2017 16:59:05 +0300 Subject: [PATCH] Use BOOST_MAY_ALIAS from Boost.Config. --- include/boost/log/detail/config.hpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/include/boost/log/detail/config.hpp b/include/boost/log/detail/config.hpp index c0bd847..a4304ab 100644 --- a/include/boost/log/detail/config.hpp +++ b/include/boost/log/detail/config.hpp @@ -204,18 +204,14 @@ # define BOOST_LOG_NORETURN #endif -// GCC and compatible compilers may require marking types that may alias other types -#if defined(__GNUC__) -# define BOOST_LOG_MAY_ALIAS __attribute__ ((__may_alias__)) -#else -# define BOOST_LOG_MAY_ALIAS -#endif +// Some compilers may require marking types that may alias other types +#define BOOST_LOG_MAY_ALIAS BOOST_MAY_ALIAS #if !defined(BOOST_LOG_BUILDING_THE_LIB) // Detect if we're dealing with dll # if defined(BOOST_LOG_DYN_LINK) || defined(BOOST_ALL_DYN_LINK) -# define BOOST_LOG_DLL +# define BOOST_LOG_DLL # endif # if defined(BOOST_LOG_DLL)