Fix visibility warnings in test

This commit is contained in:
Vinnie Falco
2018-11-20 20:51:38 -08:00
parent 5ade2a5050
commit 6ffef38dc4
2 changed files with 10 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ Version 190:
* Add buffers_range
* Rename experimental directory
* Improve compilation of tests for continuous integration
* Fix visibility warnings in test
--------------------------------------------------------------------------------

View File

@@ -14,11 +14,19 @@
#include <boost/asio/write.hpp>
#include <boost/config/workaround.hpp>
#if BOOST_WORKAROUND(BOOST_GCC, < 80200)
#define BOOST_BEAST_SYMBOL_HIDDEN __attribute__ ((visibility("hidden")))
#else
#define BOOST_BEAST_SYMBOL_HIDDEN
#endif
namespace boost {
namespace beast {
namespace websocket {
class read1_test : public websocket_test_suite
class BOOST_BEAST_SYMBOL_HIDDEN read1_test
: public websocket_test_suite
{
public:
template<class Wrap, bool deflateSupported>