0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-03-14 05:20:17 +01:00

ircd: Add visibility pragma in stdinc.h

This commit is contained in:
Jason Volk 2019-05-02 14:13:27 -07:00
parent c4628525ae
commit 7d6bcd1bd0
2 changed files with 8 additions and 0 deletions

View file

@ -26,6 +26,7 @@
#define BOOST_COROUTINES_NO_DEPRECATION_WARNING
#pragma GCC visibility push(default)
#include <boost/version.hpp>
#include <boost/config.hpp>
#include <boost/asio.hpp>
@ -33,6 +34,7 @@
#include <boost/asio/steady_timer.hpp>
#include <boost/asio/spawn.hpp>
#include <boost/asio/io_service.hpp>
#pragma GCC visibility pop
///
/// The following IRCd headers are not included in the main stdinc.h list of

View file

@ -20,6 +20,10 @@
// pollution and risk of conflicts.
//
// It is advised that all standard library symbols are declared with default
// visibility. This pragma overrides any -fvisibility option on any unit.
#pragma GCC visibility push(default)
extern "C"
{
#include <RB_INC_ASSERT_H
@ -191,3 +195,5 @@ namespace ircd
using std::error_code;
}
#pragma GCC visibility pop // default