2
0
mirror of https://github.com/boostorg/log.git synced 2026-02-02 21:02:19 +00:00

Use BOOST_MAY_ALIAS from Boost.Config.

This commit is contained in:
Andrey Semashev
2017-07-29 16:59:05 +03:00
parent cdcd5839cd
commit bd49400623

View File

@@ -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)