Replaced hardcoded symbol visibility for GCC with BOOST_SYMBOL_VISIBLE

This commit is contained in:
van Bergen Emile
2018-09-25 10:40:26 +02:00
parent 940df3e051
commit 8b879067f7

View File

@ -140,17 +140,8 @@ boost
} }
}; };
#if defined(__GNUC__) BOOST_SYMBOL_VISIBLE
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility push (default)
# endif
#endif
class exception; class exception;
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility pop
# endif
#endif
namespace namespace
exception_detail exception_detail
@ -216,11 +207,7 @@ boost
E const & set_info( E const &, throw_line const & ); E const & set_info( E const &, throw_line const & );
} }
#if defined(__GNUC__) BOOST_SYMBOL_VISIBLE
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility push (default)
# endif
#endif
class class
exception exception
{ {
@ -293,11 +280,6 @@ boost
mutable char const * throw_file_; mutable char const * throw_file_;
mutable int throw_line_; mutable int throw_line_;
}; };
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility pop
# endif
#endif
inline inline
exception:: exception::
@ -338,12 +320,8 @@ boost
namespace namespace
exception_detail exception_detail
{ {
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility push (default)
# endif
#endif
template <class T> template <class T>
BOOST_SYMBOL_VISIBLE
struct struct
error_info_injector: error_info_injector:
public T, public T,
@ -359,11 +337,6 @@ boost
{ {
} }
}; };
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility pop
# endif
#endif
struct large_size { char c[256]; }; struct large_size { char c[256]; };
large_size dispatch_boost_exception( exception const * ); large_size dispatch_boost_exception( exception const * );
@ -411,11 +384,7 @@ boost
namespace namespace
exception_detail exception_detail
{ {
#if defined(__GNUC__) BOOST_SYMBOL_VISIBLE
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility push (default)
# endif
#endif
class class
clone_base clone_base
{ {
@ -429,11 +398,6 @@ boost
{ {
} }
}; };
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility pop
# endif
#endif
inline inline
void void
@ -454,12 +418,8 @@ boost
{ {
} }
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility push (default)
# endif
#endif
template <class T> template <class T>
BOOST_SYMBOL_VISIBLE
class class
clone_impl: clone_impl:
public T, public T,
@ -500,11 +460,6 @@ boost
} }
}; };
} }
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility pop
# endif
#endif
template <class T> template <class T>
inline inline